postgres.git / summary / log / commit / refs
commit 643efb18bf80ff179981cbd91c843cc6ae97a713
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Wed Dec 25 17:22:25 2024 +0000
First released in: 18.0, 16.7, 17.3
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
src/port/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/port/meson.build b/src/port/meson.build
index 900076df571..825bd4d1cb2 100644
--- a/src/port/meson.build
+++ b/src/port/meson.build
@@ -182,6 +182,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],
[parent: 4e0d71ff2259]