From 10228dcb121d42305a275291f20412f2bec8d728 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 29 Dec 2015 01:11:37 +0800 Subject: [PATCH] link shared library with option -Bsymbolic-functions. proposed by @egberts. this fixes issue #187 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 553f71c0..2c9ce5e3 100644 --- a/Makefile +++ b/Makefile @@ -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