From 5199a2316571d0d5e9ea6103894479e2e2ec1a16 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 19 Apr 2015 18:33:13 +0000 Subject: [PATCH] lua: link library with -Bsymbolic-functions Signed-off-by: Felix Fietkau SVN-Revision: 45509 --- .../lua/patches/040-use-symbolic-functions.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/utils/lua/patches/040-use-symbolic-functions.patch diff --git a/package/utils/lua/patches/040-use-symbolic-functions.patch b/package/utils/lua/patches/040-use-symbolic-functions.patch new file mode 100644 index 0000000000..f59069557d --- /dev/null +++ b/package/utils/lua/patches/040-use-symbolic-functions.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -56,7 +56,7 @@ $(LUA_A): $(CORE_O) $(LIB_O) + $(RANLIB) $@ + + $(LUA_SO): $(CORE_O) $(LIB_O) +- $(CC) -o $@.$(PKG_VERSION) -shared -Wl,-soname="$@.$(PKG_VERSION)" $? ++ $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions -shared -Wl,-soname="$@.$(PKG_VERSION)" $? + ln -fs $@.$(PKG_VERSION) $@ + + $(LUA_T): $(LUA_O) $(LUA_SO) -- 2.30.2