1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-08 22:02:03 +03:00

meson: Export all libcommon functions in Windows builds

This fixes "unresolved external symbol" errors with extensions that
use functions from libpgport that need special CFLAGS to
compile. Currently, that includes the CRC-32 functions.

Commit 2571c1d5cc did this for libcommon, but I missed that libpqport
has the same issue.

Reported-by: Tom Lane
Backpatch-through: 16, where Meson was introduced
Discussion: https://www.postgresql.org/message-id/CAOdR5yF0krWrxycA04rgUKCgKugRvGWzzGLAhDZ9bzNv8g0Lag@mail.gmail.com
This commit is contained in:
Heikki Linnakangas 2024-12-25 19:22:25 +02:00
parent 4e0d71ff22
commit 643efb18bf

View File

@ -182,6 +182,7 @@ foreach name, opts : pgport_variants
lib = static_library('libpgport@0@'.format(name), lib = static_library('libpgport@0@'.format(name),
pgport_sources, pgport_sources,
link_with: cflag_libs, link_with: cflag_libs,
link_whole: cflag_libs,
c_pch: pch_c_h, c_pch: pch_c_h,
kwargs: opts + { kwargs: opts + {
'dependencies': opts['dependencies'] + [ssl], 'dependencies': opts['dependencies'] + [ssl],