link shared library with option -Bsymbolic-functions. proposed by @egberts. this fixes issue #187

This commit is contained in:
Nguyen Anh Quynh 2015-12-29 01:11:37 +08:00
parent f935469658
commit 10228dcb12

View File

@ -119,7 +119,7 @@ else
EXT = so
VERSION_EXT = $(EXT).$(API_MAJOR)
AR_EXT = a
$(LIBNAME)_LDFLAGS += -Wl,-soname,lib$(LIBNAME).$(VERSION_EXT)
$(LIBNAME)_LDFLAGS += -Wl,-Bsymbolic-functions,-soname,lib$(LIBNAME).$(VERSION_EXT)
UNICORN_CFLAGS += -fvisibility=hidden
endif
endif