[3/4] luajit: add host-luajit

Submitted by Francois Perrad on Jan. 23, 2014, 8:28 a.m.

Details

Message ID 1390465713-12600-3-git-send-email-francois.perrad@gadz.org
State Superseded, archived
Headers show

Commit Message

Francois Perrad Jan. 23, 2014, 8:28 a.m.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/luajit/luajit.mk |    9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
index 01fbb78..f742333 100644
--- a/package/luajit/luajit.mk
+++ b/package/luajit/luajit.mk
@@ -56,4 +56,13 @@  define LUAJIT_INSTALL_TARGET_CMDS
 	$(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" -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))