Module: sip-router Branch: 3.2 Commit: 1a155eb6641e640aceb62c293a7cb3bc76724db6 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1a155eb6...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Sat Jan 28 10:24:51 2012 +0100
Makefile: skip mtune parameter for gcc 4.6 on x86_64
- it is redundant and throws error, at least on opensuse 12.1 (cherry picked from commit d97bf62975a1f9bbeb497145605879ab1fc4877f)
---
Makefile.defs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs index d460731..dd3067f 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -941,6 +941,16 @@ ifeq ($(CC_NAME), gcc) C_DEFS+=-DCC_GCC_LIKE_ASM #common stuff CFLAGS=-g -O9 -funroll-loops -Wcast-align $(PROFILE) + #if gcc 4.6 + # don't add '-mtune=$(CPU)' - gcc failure +ifeq ($(CC_SHORTVER), 4.6) +$(call set_if_empty,CPU,opteron) + CFLAGS+=-m64 -minline-all-stringops \ + -falign-loops \ + -ftree-vectorize \ + -fno-strict-overflow + LDFLAGS+=-m64 +else #if gcc 4.5 # don't add '-mtune=$(CPU)' - gcc failure ifeq ($(CC_SHORTVER), 4.5) @@ -1003,6 +1013,7 @@ endif # CC_SHORTVER, 3.4 endif # CC_SHORTVER, 4.x endif # CC_SHORTVER, 4.2+ endif # CC_SHORTVER, 4.5 +endif # CC_SHORTVER, 4.6
else # CC_NAME, gcc ifeq ($(CC_NAME), icc)