aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-19 18:33:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-19 18:33:13 +0000
commit48b6e80b664ea3be4d0e671f1b9d2229051306f6 (patch)
treefca89f16d29227969e8c3b1c11d376d219de56ba /package/utils
parent7184eecb5fae63c376ef14977ef70a42c6b3546b (diff)
downloadupstream-48b6e80b664ea3be4d0e671f1b9d2229051306f6.tar.gz
upstream-48b6e80b664ea3be4d0e671f1b9d2229051306f6.tar.bz2
upstream-48b6e80b664ea3be4d0e671f1b9d2229051306f6.zip
lua: link library with -Bsymbolic-functions
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45509 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/lua/patches/040-use-symbolic-functions.patch11
1 files changed, 11 insertions, 0 deletions
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)