diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 18:33:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 18:33:13 +0000 |
commit | 5199a2316571d0d5e9ea6103894479e2e2ec1a16 (patch) | |
tree | 10be80cc1702ca55a12a927d6ca7590c1341e372 | |
parent | d2ecd10f2fd1868bc45989a4670e91c8cce87699 (diff) | |
download | upstream-5199a2316571d0d5e9ea6103894479e2e2ec1a16.tar.gz upstream-5199a2316571d0d5e9ea6103894479e2e2ec1a16.tar.bz2 upstream-5199a2316571d0d5e9ea6103894479e2e2ec1a16.zip |
lua: link library with -Bsymbolic-functions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45509
-rw-r--r-- | package/utils/lua/patches/040-use-symbolic-functions.patch | 11 |
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) |