summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-12-25 17:22:25 +0000
committerHeikki Linnakangas2024-12-25 17:22:33 +0000
commitd8b0c64116483c1ce9711e66700dddd709941a22 (patch)
tree6a689ecdb8f1e7a6105cb86073a7103c4f4355fd
parentc80acbc6fae828fc1f88ef7fc1584bdbccb8de65 (diff)
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
-rw-r--r--src/port/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/port/meson.build b/src/port/meson.build
index fd9ee199d1b..90f837248de 100644
--- a/src/port/meson.build
+++ b/src/port/meson.build
@@ -185,6 +185,7 @@ foreach name, opts : pgport_variants
lib = static_library('libpgport@0@'.format(name),
pgport_sources,
link_with: cflag_libs,
+ link_whole: cflag_libs,
c_pch: pch_c_h,
kwargs: opts + {
'dependencies': opts['dependencies'] + [ssl],