aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-10-15 17:00:27 -0700
committerAndres Freund <andres@anarazel.de>2022-10-15 17:02:32 -0700
commit9a95a510adf37fa73076647ac13286c8100dd1aa (patch)
tree11c671ad35d8cc1dc7a135ee9747771233c07f8e
parent57bab33302d4cdd8d48f91382aac912d7f07de59 (diff)
downloadpostgresql-9a95a510adf37fa73076647ac13286c8100dd1aa.tar.gz
postgresql-9a95a510adf37fa73076647ac13286c8100dd1aa.zip
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
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index fdf8ec8ad9c..2d225f706d2 100644
--- a/meson.build
+++ b/meson.build
@@ -228,6 +228,10 @@ elif host_system == 'darwin'
message('darwin sysroot: @0@'.format(pg_sysroot))
cflags += ['-isysroot', pg_sysroot]
ldflags += ['-isysroot', pg_sysroot]
+ # 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
+ ldflags_mod += ['-Wl,-undefined,error']
elif host_system == 'freebsd'
sema_kind = 'unnamed_posix'