diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-12-25 18:14:18 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-12-25 18:14:26 +0200 |
commit | c80acbc6fae828fc1f88ef7fc1584bdbccb8de65 (patch) | |
tree | 10ca18fcca25d85964da8cc510e224b01ab3d14a | |
parent | 89962bfef624822786f8fc6268307407fd10bc7f (diff) | |
download | postgresql-c80acbc6fae828fc1f88ef7fc1584bdbccb8de65.tar.gz postgresql-c80acbc6fae828fc1f88ef7fc1584bdbccb8de65.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
-rw-r--r-- | src/common/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/meson.build b/src/common/meson.build index de68e408fa3..b2d45c1d675 100644 --- a/src/common/meson.build +++ b/src/common/meson.build @@ -169,6 +169,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, include_directories: include_directories('.'), kwargs: opts + { |