dd65791482779ea063dfb0576aed6912be39f9da
[openwrt/openwrt.git] / package / utils / lua / patches / 050-honor-cflags.patch
1 --- a/src/Makefile
2 +++ b/src/Makefile
3 @@ -56,7 +56,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
4 $(RANLIB) $@
5
6 $(LUA_SO): $(CORE_O) $(LIB_O)
7 - $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
8 + $(CC) -o $@.$(PKG_VERSION) -Wl,-Bsymbolic-functions $(MYLDFLAGS) -shared -Wl,-soname="$@.$(PKG_VERSION)" $?
9 ln -fs $@.$(PKG_VERSION) $@
10
11