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 <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Francois Perrad 2014-07-19 16:38:55 +02:00 committed by Thomas Petazzoni
parent 0d1f550227
commit f3f0dcc909
1 changed files with 9 additions and 0 deletions

View File

@ -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))