Skip to content

Commit

Permalink
luajit: use dynamic buildmode
Browse files Browse the repository at this point in the history
Reduces package size with about 50%

Fixes: #10848

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit d948759)
  • Loading branch information
neheb committed Jul 15, 2021
1 parent d617e7b commit dd62736
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lang/luajit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) \
Expand Down

0 comments on commit dd62736

Please sign in to comment.