enable native build of luajit in plugin "apps"

This commit is contained in:
Boris Nagaev 2016-04-06 22:54:14 +03:00
parent d9c3273ed5
commit e7ce1f4300
2 changed files with 15 additions and 0 deletions

7
plugins/apps/luajit.mk Normal file
View File

@ -0,0 +1,7 @@
# This file is part of MXE.
# See index.html for further information.
# enable native build of luajit for wrk
# leave build rule in src/luajit.mk for other uses (i.e. build-pkg)
luajit_TARGETS := $(BUILD) $(MXE_TARGETS)

View File

@ -9,6 +9,7 @@ $(PKG)_SUBDIR := LuaJIT-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := http://luajit.org/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc dlfcn-win32
$(PKG)_DEPS_$(BUILD) :=
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' \
@ -21,6 +22,13 @@ define $(PKG)_BUILD
install
endef
define $(PKG)_BUILD_$(BUILD)
$(MAKE) -C '$(1)' -j '$(JOBS)' \
BUILDMODE=static \
PREFIX='$(PREFIX)/$(BUILD)' \
install
endef
# gcc -m64 is only available on 64-bit machines
ifeq (,$(findstring 64,$(BUILD)))
$(PKG)_BUILD_x86_64-w64-mingw32 =