From 6693478c076f4d58b709ac9deba809cd9d84a6ee Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 30 Nov 2012 21:51:09 -0500 Subject: Better detect architecture when compiling; src/Makefile --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3