From f3f0dcc909cd4ff3a34e356d2dae80d3df203ad1 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 19 Jul 2014 16:38:55 +0200 Subject: [PATCH] luajit: add host variant the goal is to use host-luajit with pkg-luarocks when luajit is on the selected luainterpreter for the target Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- package/luajit/luajit.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk index 72240b2775..42d6a72122 100644 --- a/package/luajit/luajit.mk +++ b/package/luajit/luajit.mk @@ -64,4 +64,13 @@ define LUAJIT_INSTALL_TARGET_CMDS $(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" LDCONFIG=true -C $(@D) install endef +define HOST_LUAJIT_BUILD_CMDS + $(MAKE) PREFIX="/usr" BUILDMODE=static -C $(@D) amalg +endef + +define HOST_LUAJIT_INSTALL_CMDS + $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" -C $(@D) install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package)) -- 2.30.2