Skip to content

Commit 9a95a51

Browse files
committed
meson: macos: Use -Wl,-undefined,error for modules
meson defaults to -Wl,-undefined,dynamic_lookup for modules, which we don't want because a) it's different from what we do for autoconf, b) it causes warnings starting in macOS Ventura. Discussion: https://postgr.es/m/20221015211955.q4cwbsfkyk3c4ty3@awork3.anarazel.de
1 parent 57bab33 commit 9a95a51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

meson.build

+4
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ elif host_system == 'darwin'
228228
message('darwin sysroot: @0@'.format(pg_sysroot))
229229
cflags += ['-isysroot', pg_sysroot]
230230
ldflags += ['-isysroot', pg_sysroot]
231+
# meson defaults to -Wl,-undefined,dynamic_lookup for modules, which we
232+
# don't want because a) it's different from what we do for autoconf, b) it
233+
# causes warnings starting in macOS Ventura
234+
ldflags_mod += ['-Wl,-undefined,error']
231235

232236
elif host_system == 'freebsd'
233237
sema_kind = 'unnamed_posix'

0 commit comments

Comments
 (0)