diff options
author | Tom Lane | 2016-10-06 03:03:55 +0000 |
---|---|---|
committer | Tom Lane | 2016-10-06 03:03:55 +0000 |
commit | bfe2e847811a4d0a46c8cdf16195c0e5929b6f83 (patch) | |
tree | d31e9566409bfd623ac81703072e5bd2e868b4aa | |
parent | 11c0e743b67acc9a0406b6058ed24de5e5527cf0 (diff) |
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: <[email protected]>
-rw-r--r-- | src/Makefile.shlib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index f64eb4d9c5..87c80c5d01 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -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) |