diff options
author | 2012-11-30 21:51:09 -0500 | |
---|---|---|
committer | 2012-11-30 21:51:09 -0500 | |
commit | 6693478c076f4d58b709ac9deba809cd9d84a6ee (patch) | |
tree | ee142f1e2f7a1d6d4d142afc8efc1d0c4f3e33c6 | |
parent | 1bbcb656162d3a3219e9896edceee8659fcfc8c2 (diff) |
Better detect architecture when compiling; src/Makefile
-rw-r--r-- | src/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index a696bc83..b62ac630 100644 --- a/src/Makefile +++ b/src/Makefile @@ -85,9 +85,10 @@ ifneq (, $(or $(findstring Linux, $(kernel)), $(findstring BSD, $(kernel)))) plat_flag = -DNCURSES ncurses_lib = -lncursesw endif - ifeq (x86_64, $(shell uname -i)) + x64 = $(shell echo "" | $(CC) -E -dM - | grep __x86_64__ | cut -d ' ' -f 3) + ifeq (1, $(x64)) libluajit = libluajit.a - else ifeq (i386, $(shell uname -i)) + else libluajit = libluajit32.a endif |