mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Remove -Wl,-undefined,dynamic_lookup in macOS build.
We don't need this anymore, and it prevents build-time error checking that's usually good to have, so remove it. Undoes one change of commit cac765820. Unfortunately, it's much harder to get a similar effect on other common platforms, because we don't want the linker to throw errors for symbols that will be resolved in the core backend. Only macOS and AIX expect the core backend executable to be available while linking loadable modules, so only these platforms can usefully throw errors for unresolved symbols at link time. Discussion: <2652.1475512158@sss.pgh.pa.us>
This commit is contained in:
parent
11c0e743b6
commit
bfe2e84781
@ -127,7 +127,7 @@ ifeq ($(PORTNAME), darwin)
|
||||
else
|
||||
# loadable module
|
||||
DLSUFFIX = .so
|
||||
LINK.shared = $(COMPILER) -bundle -multiply_defined suppress -Wl,-undefined,dynamic_lookup
|
||||
LINK.shared = $(COMPILER) -bundle -multiply_defined suppress
|
||||
endif
|
||||
BUILD.exports = $(AWK) '/^[^\#]/ {printf "_%s\n",$$1}' $< >$@
|
||||
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user