luajit: support 64-bit

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-09-29 19:55:28 -07:00
parent 2083aa49b7
commit 6eefed6313
1 changed files with 8 additions and 2 deletions

View File

@ -12,13 +12,19 @@ $(PKG)_DEPS := gcc
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' \
HOST_CC="gcc -m32" CROSS=$(TARGET)- \
HOST_CC='gcc -m32' CROSS='$(TARGET)-' \
TARGET_SYS=Windows BUILDMODE=static \
PREFIX='$(PREFIX)/$(TARGET)' \
FILE_T=luajit.exe \
install
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
# gcc -m64 is only available on 64-bit machines
ifneq (,$(findstring 64,$(BUILD)))
$(PKG)_BUILD_x86_64-w64-mingw32 = \
$(subst 'gcc -m32','gcc -m64',$($(PKG)_BUILD))
else
$(PKG)_BUILD_x86_64-w64-mingw32 =
endif
$(PKG)_BUILD_SHARED =