From 7e48c824309641c9eec41ee3dd7292a579888965 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Mon, 8 May 2017 17:28:26 +0300 Subject: [PATCH] lua: use target LDFLAGS This adds '-static' to the link command when BR2_STATIC_LIBS=y, making the lua binary really static. Cc: Francois Perrad Signed-off-by: Baruch Siach Acked-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- package/lua/lua.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/lua/lua.mk b/package/lua/lua.mk index 5ef61e039e..bc0a9d456b 100644 --- a/package/lua/lua.mk +++ b/package/lua/lua.mk @@ -70,6 +70,7 @@ define LUA_BUILD_CMDS CC="$(TARGET_CC)" RANLIB="$(TARGET_RANLIB)" \ CFLAGS="$(TARGET_CFLAGS) $(LUA_CFLAGS)" \ MYLIBS="$(LUA_MYLIBS)" AR="$(TARGET_CROSS)ar rcu" \ + MYLDFLAGS="$(TARGET_LDFLAGS)" \ BUILDMODE=$(LUA_BUILDMODE) \ PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all endef -- 2.30.2