From dd627367847d52697c0c0b739f503688961ea79f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 14 Jan 2020 20:07:05 -0800 Subject: [PATCH] luajit: use dynamic buildmode Reduces package size with about 50% Fixes: https://github.com/openwrt/packages/issues/10848 Signed-off-by: Rosen Penev (cherry picked from commit d9487590c64e3636cc4bfa845964c1c3e90e066c) --- lang/luajit/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/luajit/Makefile b/lang/luajit/Makefile index 296a3ebb61..96d83e1594 100644 --- a/lang/luajit/Makefile +++ b/lang/luajit/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luajit PKG_VERSION:=2.1.0-beta3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=LuaJIT-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://luajit.org/download @@ -44,7 +44,8 @@ define Build/Compile DPREFIX=$(PKG_INSTALL_DIR)/usr \ PREFIX=/usr \ TARGET_SYS=Linux \ - TARGET_CFLAGS="$(TARGET_CFLAGS)" + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + BUILDMODE=dynamic rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ -- 2.30.2