From 9962f6228f319a219d2c796fe6270ac4d18624dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 19 Aug 2015 15:14:00 +0200 Subject: [PATCH] makefile: detect target architecture using the compiler Fixes producing a 32bit build in a 64bit system. Original patch by Andrei Pelinescu-Onciul: https://github.com/kamailio/kamailio/commit/c46e79709216c4975abc83869fbce9fa696eac74 (cherry picked from commit 1161779ab91ac5bbd330ddf5dccc3f00d9e34f35) --- Makefile.defs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile.defs b/Makefile.defs index 1a74717abff..939c92813ef 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -501,9 +501,7 @@ endif # predefined macros tests (x86_macros, ...) endif # gcc ifdef CC_ARCH -ifneq ($(CC_ARCH),$(HOST_ARCH)) $(info Target architecture <$(CC_ARCH)>, host architecture <$(HOST_ARCH)>) -endif ARCH:=$(CC_ARCH) else ARCH:=$(HOST_ARCH)