Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fb0687

Browse files
committed
solaris: Use versioning scripts instead of -Bsymbolic
-Bsymbolic causes a lot of "ld: warning: symbol referencing errors" warnings. It's quite easy to add the symbol versioning script, we just need a slightly different parameter name. Reviewed-by: Peter Eisentraut <[email protected]> Discussion: https://postgr.es/m/[email protected] Discussion: https://postgr.es/m/[email protected]
1 parent 82ac34d commit 3fb0687

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Makefile.shlib

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,15 @@ ifeq ($(PORTNAME), linux)
188188
endif
189189

190190
ifeq ($(PORTNAME), solaris)
191-
LINK.shared = $(COMPILER) -shared -Wl,-Bsymbolic
191+
LINK.shared = $(COMPILER) -shared
192192
ifdef soname
193193
LINK.shared += -Wl,-soname,$(soname)
194194
endif
195+
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
196+
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
197+
ifneq (,$(exports_file))
198+
LINK.shared += -Wl,-M$(exports_file)
199+
endif
195200
endif
196201

197202
ifeq ($(PORTNAME), cygwin)

0 commit comments

Comments
 (0)