From 08997df4753470811829ea09eec7a5c3366aac63 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 16 Nov 2025 23:35:44 +0100 Subject: [PATCH] lua: Forward LDFLAGS Forward the TARGET_LDFLAGS to the linking process. Link: https://github.com/openwrt/openwrt/pull/20813 Signed-off-by: Hauke Mehrtens --- package/utils/lua5.3/patches/020-shared_liblua.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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