From: Felix Fietkau Date: Sun, 19 Apr 2015 18:33:13 +0000 (+0000) Subject: lua: link library with -Bsymbolic-functions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5199a2316571d0d5e9ea6103894479e2e2ec1a16;p=openwrt%2Fstaging%2Fmans0n.git lua: link library with -Bsymbolic-functions Signed-off-by: Felix Fietkau SVN-Revision: 45509 --- 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)