summaryrefslogtreecommitdiffstats
path: root/openwrt/package/asterisk/patches/asterisk-1.0.9-Makefile-codecs-gsm.patch
blob: 3030e780c1ca9c889e9ed2a770bcafc04bb1f0e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
diff -ruN asterisk-1.0.9-old/codecs/gsm/Makefile asterisk-1.0.9-new/codecs/gsm/Makefile
--- asterisk-1.0.9-old/codecs/gsm/Makefile	2005-06-21 16:27:28.000000000 +0200
+++ asterisk-1.0.9-new/codecs/gsm/Makefile	2005-07-11 13:36:12.000000000 +0200
@@ -40,12 +40,12 @@
 ifneq (${OSARCH},Darwin)
 ifneq (${PROC},x86_64)
 ifneq (${PROC},ultrasparc)
-ifneq ($(shell uname -m),ppc)
-ifneq ($(shell uname -m),alpha)
-ifneq ($(shell uname -m),armv4l)
+ifneq (${PROC},alpha)
+ifneq (${PROC},armv4l)
 ifneq (${PROC},sparc64)
 ifneq (${PROC},ppc)
 ifneq (${PROC},ppc64)
+ifneq (${PROC},mipsel)
 OPTIMIZE+=-march=$(PROC)
 endif
 endif
@@ -84,7 +84,7 @@
 # CCFLAGS 	= -c -O
 
 CC		?= gcc
-CCFLAGS 	+= -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC $(OPTIMIZE) -fomit-frame-pointer
+CCFLAGS 	+= -c -DNeedFunctionPrototypes=1 -fPIC $(OPTIMIZE)
 
 LD 		= $(CC)
 
@@ -219,11 +219,12 @@
 		$(SRC)/short_term.c	\
 		$(SRC)/table.c
 ifeq (${OSARCH},Linux)
-ifneq ($(shell uname -m),x86_64)
-ifneq ($(shell uname -m),ppc)
-ifneq ($(shell uname -m),alpha)
-ifneq ($(shell uname -m),armv4l)
-ifneq ($(shell uname -m),sparc64)
+ifneq (${PROC},x86_64)
+ifneq (${PROC},ppc)
+ifneq (${PROC},alpha)
+ifneq (${PROC},armv4l)
+ifneq (${PROC},sparc64)
+ifneq ($(PROC),mipsel)
 GSM_SOURCES+= $(SRC)/k6opt.s
 endif
 endif
@@ -231,6 +232,7 @@
 endif
 endif
 endif
+endif
 
 TOAST_SOURCES = $(SRC)/toast.c 		\
 		$(SRC)/toast_lin.c	\
@@ -277,11 +279,12 @@
 		$(SRC)/table.o
 
 ifeq (${OSARCH},Linux)
-ifneq ($(shell uname -m), x86_64)
-ifneq ($(shell uname -m), ppc)
-ifneq ($(shell uname -m), alpha)
-ifneq ($(shell uname -m), armv4l)
-ifneq ($(shell uname -m), sparc64)
+ifneq (${PROC}, x86_64)
+ifneq (${PROC}, ppc)
+ifneq (${PROC}, alpha)
+ifneq (${PROC}, armv4l)
+ifneq (${PROC}, sparc64)
+ifneq ($(PROC), mipsel)
 GSM_OBJECTS+= $(SRC)/k6opt.o
 endif
 endif
@@ -289,6 +292,7 @@
 endif
 endif
 endif
+endif
 
 TOAST_OBJECTS =	$(SRC)/toast.o 		\
 		$(SRC)/toast_lin.o	\