[sr-dev] git:4.3:5a0b8a45: core: fix mips compilation
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jul 29 12:17:11 CEST 2015
Module: kamailio
Branch: 4.3
Commit: 5a0b8a4550df2de15e40b5d7e664322815a48aea
URL: https://github.com/kamailio/kamailio/commit/5a0b8a4550df2de15e40b5d7e664322815a48aea
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-07-29T12:09:05+02:00
core: fix mips compilation
Patch from
http://anonscm.debian.org/cgit/pkg-voip/kamailio.git/tree/debian/patches/fix-mips.patch
by Dejan Latinovic <Dejan.Latinovic at imgtec.com>
(cherry picked from commit ed894111f6f15170f87336bfa73ec4e8fce1c7d1)
---
Modified: Makefile.defs
---
Diff: https://github.com/kamailio/kamailio/commit/5a0b8a4550df2de15e40b5d7e664322815a48aea.diff
Patch: https://github.com/kamailio/kamailio/commit/5a0b8a4550df2de15e40b5d7e664322815a48aea.patch
---
diff --git a/Makefile.defs b/Makefile.defs
index 3e7f726..6d6a04f 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -1319,12 +1319,13 @@ ifeq ($(CC_NAME), gcc)
CFLAGS= -mips2 $(CC_OPT) -funroll-loops $(PROFILE)
#if gcc 5.0+, 4.5+ or 4.2+
ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+,$(CC_SHORTVER))))
- CFLAGS+=-minline-all-stringops -ftree-vectorize \
- -fno-strict-overflow
+ CFLAGS+=-ftree-vectorize -fno-strict-overflow
+ # not supported on mips: -minline-all-stringops
else
#if gcc 4.0+
ifeq ($(CC_SHORTVER), 4.x)
- CFLAGS+=-minline-all-stringops -ftree-vectorize
+ CFLAGS+=-ftree-vectorize
+ # not supported on mips: -minline-all-stringops
else
#if gcc 3.4+
ifeq ($(CC_SHORTVER), 3.4)
@@ -1364,12 +1365,14 @@ ifeq ($(CC_NAME), gcc)
CFLAGS= -mips64 $(CC_OPT) -funroll-loops $(PROFILE)
#if gcc 5.0+, 4.5+ or 4.2+
ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+,$(CC_SHORTVER))))
- CFLAGS+=-minline-all-stringops -ftree-vectorize \
- -fno-strict-overflow
+ CFLAGS+=-ftree-vectorize -fno-strict-overflow
+ # not supported on mips: -minline-all-stringops
+
else
#if gcc 4.0+
ifeq ($(CC_SHORTVER), 4.x)
- CFLAGS+=-minline-all-stringops -ftree-vectorize
+ CFLAGS+=-ftree-vectorize
+ # not supported on mips: -minline-all-stringops
else
#if gcc 3.4+
ifeq ($(CC_SHORTVER), 3.4)
More information about the sr-dev
mailing list