We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ac34d commit 3fb0687Copy full SHA for 3fb0687
src/Makefile.shlib
@@ -188,10 +188,15 @@ ifeq ($(PORTNAME), linux)
188
endif
189
190
ifeq ($(PORTNAME), solaris)
191
- LINK.shared = $(COMPILER) -shared -Wl,-Bsymbolic
+ LINK.shared = $(COMPILER) -shared
192
ifdef soname
193
LINK.shared += -Wl,-soname,$(soname)
194
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
200
201
202
ifeq ($(PORTNAME), cygwin)
0 commit comments