aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-06-18 10:55:57 +0000
committerSteven Barth <steven@midlink.org>2015-06-18 10:55:57 +0000
commitb7bc03c033e6e51a3ffe64d33b34ae8140a75912 (patch)
treec2b7ab9afa145a57118c4f9b7b8cd7952ed2ad00
parent2a4aba07d8956930917e86eadb4fb13b03be8c5c (diff)
downloadmaster-187ad058-b7bc03c033e6e51a3ffe64d33b34ae8140a75912.tar.gz
master-187ad058-b7bc03c033e6e51a3ffe64d33b34ae8140a75912.tar.bz2
master-187ad058-b7bc03c033e6e51a3ffe64d33b34ae8140a75912.zip
lua: honor LDFLAGS
Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46036 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/utils/lua/patches/050-honor-cflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/utils/lua/patches/050-honor-cflags.patch b/package/utils/lua/patches/050-honor-cflags.patch
new file mode 100644
index 0000000000..dd65791482
--- /dev/null
+++ b/package/utils/lua/patches/050-honor-cflags.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) -Wl,-Bsymbolic-functions -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
++ $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions $(MYLDFLAGS) -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
+ ln -fs $@.$(PKG_VERSION) $@
+
+