Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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 <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/20220823083436.whtntk3bn3qpnvmb@awork3.anarazel.de Discussion: https://postgr.es/m/7dae5979-c6c0-cec5-7a36-76a85aa8053d@enterprisedb.com
1 parent 82ac34d commit 3fb0687

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Makefile.shlib

+6-1
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)