Browse Source

GitHub issue #219 -- make Linux makefile cross-compiler aware.

Adam Ierymenko 9 years ago
parent
commit
33c132968e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      make-linux.mk

+ 1 - 1
make-linux.mk

@@ -26,7 +26,7 @@ ifeq ($(origin CXX),default)
 	CXX=$(shell if [ -e /usr/bin/clang++ ]; then echo clang++; else echo g++; fi)
 endif
 
-UNAME_M=$(shell uname -m)
+UNAME_M=$(shell $(CC) -dumpmachine | cut -d '-' -f 1)
 
 INCLUDES=
 DEFS=-DZT_ENABLE_CLUSTER