Module: sip-router
Branch: master
Commit: 6fe4e56937563a413cfd83794e0fe71a20caf3d5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6fe4e56…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 2 09:50:57 2014 +0200
Makefile.defs: don't set gcc flag -maltivec if not advertised for powerpc
- reported at FS#444,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729635
- following a patch by Roland Stigge <stigge(a)antcom.de> on debian bug
tracker
---
Makefile.defs | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs
index a80ac8c..4ee2430 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -1502,19 +1502,27 @@ ifeq ($(ARCH), ppc)
ifeq ($(CC_NAME), gcc)
C_DEFS+=-DCC_GCC_LIKE_ASM
#common stuff
- CFLAGS= $(CC_OPT) -funroll-loops -fsigned-char $(PROFILE)
+ CFLAGS=
#if gcc 4.5+ or 4.2+
ifeq (,$(strip $(filter-out 4.2+ 4.5+,$(CC_SHORTVER))))
$(call set_if_empty,CPU,powerpc)
- CFLAGS+=-ftree-vectorize \
- -fno-strict-overflow \
- -mtune=$(CPU) -maltivec
+ifeq ($(NOALTIVEC),)
+ CFLAGS += $(CC_OPT) -funroll-loops -fsigned-char $(PROFILE)
+ CFLAGS += -ftree-vectorize
+ CFLAGS += -maltivec
+ CFLAGS += -fno-strict-overflow
+ CFLAGS += -mtune=$(CPU)
+endif
else
#if gcc 4.0+
ifeq ($(CC_SHORTVER), 4.x)
$(call set_if_empty,CPU,powerpc)
- CFLAGS+=-ftree-vectorize \
- -mtune=$(CPU) -maltivec
+ifeq ($(NOALTIVEC),)
+ CFLAGS += $(CC_OPT) -funroll-loops -fsigned-char $(PROFILE)
+ CFLAGS += -ftree-vectorize
+ CFLAGS += -maltivec
+ CFLAGS += -mtune=$(CPU)
+endif
else
#if gcc 3.4+
ifeq ($(CC_SHORTVER), 3.4)