Skip to content

Commit

Permalink
makefile: detect target architecture using the compiler
Browse files Browse the repository at this point in the history
Fixes producing a 32bit build in a 64bit system.

Original patch by Andrei Pelinescu-Onciul:
kamailio/kamailio@c46e797

(cherry picked from commit 1161779)
  • Loading branch information
saghul authored and razvancrainea committed Sep 28, 2015
1 parent 64256bd commit 9962f62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Makefile.defs
Expand Up @@ -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)
Expand Down

0 comments on commit 9962f62

Please sign in to comment.