From: Hauke Mehrtens Date: Sun, 16 Nov 2025 22:35:44 +0000 (+0100) Subject: lua: Forward LDFLAGS X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=08997df4753470811829ea09eec7a5c3366aac63;p=openwrt%2Fopenwrt.git lua: Forward LDFLAGS Forward the TARGET_LDFLAGS to the linking process. Link: https://github.com/openwrt/openwrt/pull/20813 Signed-off-by: Hauke Mehrtens --- diff --git a/package/utils/lua5.3/patches/020-shared_liblua.patch b/package/utils/lua5.3/patches/020-shared_liblua.patch index a462fa4f1e..66666133b6 100644 --- a/package/utils/lua5.3/patches/020-shared_liblua.patch +++ b/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