add asterisk-1.4.x (thanks to Hans Zandblet)
[openwrt/svn-archive/archive.git] / net / asterisk-1.4.x / patches / 026-gsm-mips.patch
1 diff -Nru asterisk-1.4.5.org/codecs/gsm/Makefile asterisk-1.4.5/codecs/gsm/Makefile
2 --- asterisk-1.4.5.org/codecs/gsm/Makefile 2007-02-17 01:31:42.000000000 +0100
3 +++ asterisk-1.4.5/codecs/gsm/Makefile 2007-06-22 09:13:13.000000000 +0200
4 @@ -38,7 +38,7 @@
5 ######### probably require gcc.
6
7 ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
8 -ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel ))
9 +ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips ))
10 ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 ))
11 OPTIMIZE+=-march=$(PROC)
12 endif
13 @@ -209,7 +209,7 @@
14 # XXX should merge with GSM_OBJECTS
15 ifeq ($(OSARCH),linux-gnu)
16 ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 ))
17 -ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel ))
18 +ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel mips ))
19 GSM_SOURCES+= $(SRC)/k6opt.s
20 endif
21 endif
22 @@ -261,7 +261,7 @@
23
24 ifeq ($(OSARCH),linux-gnu)
25 ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc ))
26 -ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel ))
27 +ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel mips ))
28 GSM_OBJECTS+= $(SRC)/k6opt.o
29 endif
30 endif