]> git.pld-linux.org Git - packages/asterisk.git/blob - asterisk-noarch.patch
- up to 1.2.2
[packages/asterisk.git] / asterisk-noarch.patch
1 diff -urbB asterisk-1.0.9.org/channels/h323/Makefile asterisk-1.0.9/channels/h323/Makefile
2 --- asterisk-1.0.9.org/channels/h323/Makefile   2004-11-15 03:35:35.000000000 +0100
3 +++ asterisk-1.0.9/channels/h323/Makefile       2005-10-09 11:49:52.396650250 +0200
4 @@ -20,11 +20,6 @@
5  # This needs to be updated to deal with more than just little endian machines
6  #
7  OSARCH=$(shell uname -s)
8 -ifneq (${OSARCH},FreeBSD)
9 -ifneq (${OSARCH},NetBSD)
10 -CFLAGS += -march=$(shell uname -m)
11 -endif
12 -endif
13  CFLAGS += -DPBYTE_ORDER=PLITTLE_ENDIAN
14  
15  ifeq (${OSARCH},Linux)
16 Tylko w asterisk-1.0.9/channels/h323: Makefile~
17 diff -urbB asterisk-1.0.9.org/codecs/gsm/Makefile asterisk-1.0.9/codecs/gsm/Makefile
18 --- asterisk-1.0.9.org/codecs/gsm/Makefile      2005-06-21 16:27:28.000000000 +0200
19 +++ asterisk-1.0.9/codecs/gsm/Makefile  2005-10-09 11:50:18.350272250 +0200
20 @@ -37,34 +37,11 @@
21  ######### ppro's, etc, as well as the AMD K6 and K7.  The compile will
22  ######### probably require gcc. 
23  
24 -ifneq (${OSARCH},Darwin)
25 -ifneq (${PROC},x86_64)
26 -ifneq (${PROC},ultrasparc)
27 -ifneq ($(shell uname -m),ppc)
28 -ifneq ($(shell uname -m),alpha)
29 -ifneq ($(shell uname -m),armv4l)
30 -ifneq (${PROC},sparc64)
31 -ifneq (${PROC},ppc)
32 -ifneq (${PROC},ppc64)
33 -OPTIMIZE+=-march=$(PROC)
34 -endif
35 -endif
36 -endif
37 -endif
38 -endif
39 -endif
40 -endif
41 -endif
42 -endif
43 -
44  #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
45  #This works for even old (2.96) versions of gcc and provides a small boost either way.
46  #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it.
47  #So we go lowest common available by gcc and go a step down, still a step up from
48  #the default as we now have a better instruction set to work with. - Belgarath
49 -ifeq (${PROC},ultrasparc)
50 -OPTIMIZE+=-mcpu=v8 -mtune=$(PROC) -O3 -fomit-frame-pointer
51 -endif
52  
53  PG =
54  #PG = -g -pg
55 Tylko w asterisk-1.0.9/codecs/gsm: Makefile~
56 diff -urbB asterisk-1.0.9.org/codecs/lpc10/Makefile asterisk-1.0.9/codecs/lpc10/Makefile
57 --- asterisk-1.0.9.org/codecs/lpc10/Makefile    2004-08-31 18:33:00.000000000 +0200
58 +++ asterisk-1.0.9/codecs/lpc10/Makefile        2005-10-09 11:50:32.795175000 +0200
59 @@ -25,28 +25,6 @@
60  CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
61  #CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
62  
63 -#fix for PPC processors and ALPHA, And UltraSparc too
64 -ifneq ($(OSARCH),Darwin)
65 -ifneq ($(findstring BSD,${OSARCH}),BSD)
66 -ifneq ($(PROC),ppc)
67 -ifneq ($(PROC),x86_64)
68 -ifneq ($(PROC),alpha)
69 -#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
70 -#This works for even old (2.96) versions of gcc and provides a small boost either way.
71 -#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it.
72 -#So we go lowest common available by gcc and go a step down, still a step up from
73 -#the default as we now have a better instruction set to work with. - Belgarath
74 -ifeq ($(PROC),ultrasparc)
75 -        CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer
76 -else
77 -        CFLAGS+= -march=$(PROC)
78 -endif
79 -endif
80 -endif
81 -endif
82 -endif
83 -endif
84 -
85  LIB = $(LIB_TARGET_DIR)/liblpc10.a
86  
87  .PHONY: all clean
88 Tylko w asterisk-1.0.9/codecs/lpc10: Makefile~
89 diff -urbB asterisk-1.0.9.org/Makefile asterisk-1.0.9/Makefile
90 --- asterisk-1.0.9.org/Makefile 2005-04-26 16:30:23.000000000 +0200
91 +++ asterisk-1.0.9/Makefile     2005-10-09 11:49:39.263829500 +0200
92 @@ -130,10 +130,6 @@
93  CFLAGS=-pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
94  CFLAGS+=$(OPTIMIZE)
95  
96 -ifneq ($(PROC),ultrasparc)
97 -CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
98 -endif
99 -
100  CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
101  CFLAGS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "-DOSP_SUPPORT -I/usr/include/osp" ; fi)
102  
This page took 0.03911 seconds and 3 git commands to generate.