8000 Stop using "-multiply_defined suppress" on macOS. · postgres/postgres@0e0de20 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e0de20

Browse files
committed
Stop using "-multiply_defined suppress" on macOS.
We started to use this linker switch in commit 9df3086 of 2004-07-13, which was in the OS X 10.3 era. Apparently it's been a no-op since around OS X 10.9. Apple's most recent toolchain version actively complains about it, so it's time to get rid of it. Discussion: https://postgr.es/m/467042.1695766998@sss.pgh.pa.us
1 parent a4a8c0d commit 0e0de20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile.shlib

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ ifeq ($(PORTNAME), darwin)
123123
ifneq ($(SO_MAJOR_VERSION), 0)
124124
version_link = -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
125125
endif
126-
LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link) $(exported_symbols_list) -multiply_defined suppress
126+
LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link) $(exported_symbols_list)
127127
shlib = lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)
128128
shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
129129
else
130130
# loadable module
131131
DLSUFFIX = .so
132-
LINK.shared = $(COMPILER) -bundle -multiply_defined suppress
132+
LINK.shared = $(COMPILER) -bundle
133133
endif
134134
BUILD.exports = $(AWK) '/^[^\#]/ {printf "_%s\n",$$1}' $< >$@
135135
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)

0 commit comments

Comments
 (0)
0