summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-07-19 16:38:55 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-27 10:34:16 +0200
commitf3f0dcc909cd4ff3a34e356d2dae80d3df203ad1 (patch)
treed88affeb5e776bba4faa4e4740ed14541f9acc74 /package
parent0d1f55022798fb619241c7796eef8fcad4a84128 (diff)
downloadbuildroot-f3f0dcc909cd4ff3a34e356d2dae80d3df203ad1.tar.gz
buildroot-f3f0dcc909cd4ff3a34e356d2dae80d3df203ad1.zip
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>
Diffstat (limited to 'package')
-rw-r--r--package/luajit/luajit.mk9
1 files changed, 9 insertions, 0 deletions
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))
OpenPOWER on IntegriCloud