From: Francois Perrad Date: Sat, 19 Jul 2014 14:38:55 +0000 (+0200) Subject: luajit: add host variant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3f0dcc909cd4ff3a34e356d2dae80d3df203ad1;p=buildroot.git 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 --- 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))