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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy