Skip to content

Commit c80acbc

Browse files
committed
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
1 parent 89962bf commit c80acbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ foreach name, opts : pgcommon_variants
169169

170170
lib = static_library('libpgcommon@0@'.format(name),
171171
link_with: cflag_libs,
172+
link_whole: cflag_libs,
172173
c_pch: pch_c_h,
173174
include_directories: include_directories('.'),
174175
kwargs: opts + {

0 commit comments

Comments
 (0)