luajit: use dynamic buildmode
authorRosen Penev <rosenp@gmail.com>
Wed, 15 Jan 2020 04:07:05 +0000 (20:07 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 15 Jul 2021 02:26:19 +0000 (19:26 -0700)
Reduces package size with about 50%

Fixes: https://github.com/openwrt/packages/issues/10848
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit d9487590c64e3636cc4bfa845964c1c3e90e066c)

lang/luajit/Makefile

index 296a3ebb61d19c088bb82b90e0ea60930afbdc42..96d83e159411d1444b523739dcca5a0f250b88eb 100644 (file)
@@ -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) \