Ver código fonte

lua: Forward LDFLAGS

Forward the TARGET_LDFLAGS to the linking process.

Link: https://github.com/openwrt/openwrt/pull/20813
Signed-off-by: Hauke Mehrtens <[email protected]>
Hauke Mehrtens 1 mês atrás
pai
commit
08997df475

+ 1 - 1
package/utils/lua5.3/patches/020-shared_liblua.patch

@@ -304,7 +304,7 @@
 -$(LUA_T): $(LUA_O) $(LUA_A)
 -	$(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
 +$(LUA_SO): $(CORE_O) $(LIB_O)
-+	$(CC) -o $@ -Wl,-Bsymbolic-functions -shared -Wl,-soname="$@" $?
++	$(CC) -o $@ $(MYLDFLAGS) -Wl,-Bsymbolic-functions -shared -Wl,-soname="$@" $?
 +	ln -fs $@ liblua$V.so.0.0
 +	ln -fs $@ liblua$V.so.0
 +	ln -fs $@ liblua$V.so