Skip to content

Commit

Permalink
core: fix mips compilation
Browse files Browse the repository at this point in the history
Patch from
http://anonscm.debian.org/cgit/pkg-voip/kamailio.git/tree/debian/patches/fix-mips.patch
by Dejan Latinovic <Dejan.Latinovic@imgtec.com>

(cherry picked from commit ed89411)
  • Loading branch information
linuxmaniac authored and miconda committed Jul 29, 2015
1 parent fb2af61 commit 5a0b8a4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile.defs
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5a0b8a4

Please sign in to comment.