aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-12-25 18:14:18 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-12-25 18:14:18 +0200
commit2571c1d5cc5ed2620d601a7e12179bd951f2e202 (patch)
tree3f60a7bddee240a6c2b88c6c6f015c701e714fb5 /src/common
parentd663f150b5edd5ec4a5a3bbc24f9ad7e40f1abbb (diff)
downloadpostgresql-2571c1d5cc5ed2620d601a7e12179bd951f2e202.tar.gz
postgresql-2571c1d5cc5ed2620d601a7e12179bd951f2e202.zip
meson: Export all libcommon functions in Windows builds
This fixes "unresolved external symbol" errors with extensions that use functions from libcommon. This was reported with pgvector. Reported-by: Andrew Kane Author: Vladlen Popolitov Backpatch-through: 16, where Meson was introduced Discussion: https://www.postgresql.org/message-id/CAOdR5yF0krWrxycA04rgUKCgKugRvGWzzGLAhDZ9bzNv8g0Lag@mail.gmail.com
Diffstat (limited to 'src/common')
-rw-r--r--src/common/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/meson.build b/src/common/meson.build
index 538e0f43d55..76a7f68fe30 100644
--- a/src/common/meson.build
+++ b/src/common/meson.build
@@ -184,6 +184,7 @@ foreach name, opts : pgcommon_variants
lib = static_library('libpgcommon@0@'.format(name),
link_with: cflag_libs,
+ link_whole: cflag_libs,
c_pch: pch_c_h,
kwargs: opts + {
'include_directories': [