diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-11-17 00:58:52 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-11-17 03:25:19 (GMT) |
commit | b06795b831a710478b345fff4682064888fd9ee2 (patch) | |
tree | 82e4839ddb5dcec97cfcba22cfaf94d99ff7e7cc /src/luajit.mk | |
parent | 3b57e93a576d050a3b64cf36f6f19d1409022787 (diff) | |
download | mxe-b06795b831a710478b345fff4682064888fd9ee2.zip mxe-b06795b831a710478b345fff4682064888fd9ee2.tar.gz mxe-b06795b831a710478b345fff4682064888fd9ee2.tar.bz2 |
Add a $(BITS) convenience variable
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/luajit.mk')
-rw-r--r-- | src/luajit.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/luajit.mk b/src/luajit.mk index 1dc5b87..d71342c 100644 --- a/src/luajit.mk +++ b/src/luajit.mk @@ -12,7 +12,7 @@ $(PKG)_DEPS := gcc define $(PKG)_BUILD $(MAKE) -C '$(1)' -j '$(JOBS)' \ - HOST_CC='gcc -m32' CROSS='$(TARGET)-' \ + HOST_CC='gcc -m$(BITS)' CROSS='$(TARGET)-' \ TARGET_SYS=Windows BUILDMODE=static \ PREFIX='$(PREFIX)/$(TARGET)' \ FILE_T=luajit.exe \ @@ -20,10 +20,7 @@ define $(PKG)_BUILD endef # 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 +ifeq (,$(findstring 64,$(BUILD))) $(PKG)_BUILD_x86_64-w64-mingw32 = endif |