lua: link library with -Bsymbolic-functions
authorFelix Fietkau <nbd@openwrt.org>
Sun, 19 Apr 2015 18:33:13 +0000 (18:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 19 Apr 2015 18:33:13 +0000 (18:33 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45509

package/utils/lua/patches/040-use-symbolic-functions.patch [new file with mode: 0644]

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 (file)
index 0000000..f590695
--- /dev/null
@@ -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)