summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/luajit/luajit.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
index 2c1f8f4ed1..85e9f1528e 100644
--- a/package/luajit/luajit.mk
+++ b/package/luajit/luajit.mk
@@ -64,6 +64,11 @@ define LUAJIT_INSTALL_TARGET_CMDS
$(MAKE) PREFIX="/usr" DESTDIR="$(TARGET_DIR)" LDCONFIG=true -C $(@D) install
endef
+define LUAJIT_INSTALL_SYMLINK
+ ln -fs luajit $(TARGET_DIR)/usr/bin/lua
+endef
+LUAJIT_POST_INSTALL_TARGET_HOOKS += LUAJIT_INSTALL_SYMLINK
+
define HOST_LUAJIT_BUILD_CMDS
$(MAKE) PREFIX="/usr" BUILDMODE=static -C $(@D) amalg
endef
OpenPOWER on IntegriCloud