aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-12-25 19:22:25 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-12-25 19:22:25 +0200
commit07f902bd760791527511be9fc47440039bc86b5c (patch)
tree2fd7c54a676a55cbd16b02e2d61c70cbdef75a14
parent4c9b453c91b201264c6d60a3de197115c8feaee0 (diff)
downloadpostgresql-07f902bd760791527511be9fc47440039bc86b5c.tar.gz
postgresql-07f902bd760791527511be9fc47440039bc86b5c.zip
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 c5bceed9cda..9c916d8521d 100644
--- a/src/port/meson.build
+++ b/src/port/meson.build
@@ -184,6 +184,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],