Module: sip-router Branch: master Commit: d97bf62975a1f9bbeb497145605879ab1fc4877f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d97bf629...
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
---
Makefile.defs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs index 0c7cde0..b737bd6 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)