recipes: Preserve warnings flags appending the C flags in some (specific) recipes
[dragora.git] / patches / libmad / libmad-0.15.1b-cflags.patch
blob2ec44e344562b84d34c45168b9afdb13361204cd
1 diff -Naur libmad-0.15.1b-orig/configure.ac libmad-0.15.1b/configure.ac
2 --- libmad-0.15.1b-orig/configure.ac 2007-06-30 20:22:31.000000000 -0600
3 +++ libmad-0.15.1b/configure.ac 2007-06-30 20:25:31.000000000 -0600
4 @@ -122,74 +122,74 @@
5 esac
6 done
8 -if test "$GCC" = yes
9 -then
10 - if test -z "$arch"
11 - then
12 - case "$host" in
13 - i386-*) ;;
14 - i?86-*) arch="-march=i486" ;;
15 - arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
16 - armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
17 - powerpc-*) ;;
18 - mips*-agenda-*) arch="-mcpu=vr4100" ;;
19 - mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
20 - esac
21 - fi
23 - case "$optimize" in
24 - -O|"-O "*)
25 - optimize="-O"
26 - optimize="$optimize -fforce-mem"
27 - optimize="$optimize -fforce-addr"
28 - : #x optimize="$optimize -finline-functions"
29 - : #- optimize="$optimize -fstrength-reduce"
30 - optimize="$optimize -fthread-jumps"
31 - optimize="$optimize -fcse-follow-jumps"
32 - optimize="$optimize -fcse-skip-blocks"
33 - : #x optimize="$optimize -frerun-cse-after-loop"
34 - : #x optimize="$optimize -frerun-loop-opt"
35 - : #x optimize="$optimize -fgcse"
36 - optimize="$optimize -fexpensive-optimizations"
37 - optimize="$optimize -fregmove"
38 - : #* optimize="$optimize -fdelayed-branch"
39 - : #x optimize="$optimize -fschedule-insns"
40 - optimize="$optimize -fschedule-insns2"
41 - : #? optimize="$optimize -ffunction-sections"
42 - : #? optimize="$optimize -fcaller-saves"
43 - : #> optimize="$optimize -funroll-loops"
44 - : #> optimize="$optimize -funroll-all-loops"
45 - : #x optimize="$optimize -fmove-all-movables"
46 - : #x optimize="$optimize -freduce-all-givs"
47 - : #? optimize="$optimize -fstrict-aliasing"
48 - : #* optimize="$optimize -fstructure-noalias"
50 - case "$host" in
51 - arm*-*)
52 - optimize="$optimize -fstrength-reduce"
53 - ;;
54 - mips*-*)
55 - optimize="$optimize -fstrength-reduce"
56 - optimize="$optimize -finline-functions"
57 - ;;
58 - i?86-*)
59 - optimize="$optimize -fstrength-reduce"
60 - ;;
61 - powerpc-apple-*)
62 - # this triggers an internal compiler error with gcc2
63 - : #optimize="$optimize -fstrength-reduce"
65 - # this is really only beneficial with gcc3
66 - : #optimize="$optimize -finline-functions"
67 - ;;
68 - *)
69 - # this sometimes provokes bugs in gcc 2.95.2
70 - : #optimize="$optimize -fstrength-reduce"
71 - ;;
72 - esac
73 - ;;
74 - esac
75 -fi
76 +#if test "$GCC" = yes
77 +#then
78 +# if test -z "$arch"
79 +# then
80 +# case "$host" in
81 +# i386-*) ;;
82 +# i?86-*) arch="-march=i486" ;;
83 +# arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
84 +# armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
85 +# powerpc-*) ;;
86 +# mips*-agenda-*) arch="-mcpu=vr4100" ;;
87 +# mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
88 +# esac
89 +# fi
91 +# case "$optimize" in
92 +# -O|"-O "*)
93 +# optimize="-O"
94 +# optimize="$optimize -fforce-mem"
95 +# optimize="$optimize -fforce-addr"
96 +# : #x optimize="$optimize -finline-functions"
97 +# : #- optimize="$optimize -fstrength-reduce"
98 +# optimize="$optimize -fthread-jumps"
99 +# optimize="$optimize -fcse-follow-jumps"
100 +# optimize="$optimize -fcse-skip-blocks"
101 +# : #x optimize="$optimize -frerun-cse-after-loop"
102 +# : #x optimize="$optimize -frerun-loop-opt"
103 +# : #x optimize="$optimize -fgcse"
104 +# optimize="$optimize -fexpensive-optimizations"
105 +# optimize="$optimize -fregmove"
106 +# : #* optimize="$optimize -fdelayed-branch"
107 +# : #x optimize="$optimize -fschedule-insns"
108 +# optimize="$optimize -fschedule-insns2"
109 +# : #? optimize="$optimize -ffunction-sections"
110 +# : #? optimize="$optimize -fcaller-saves"
111 +# : #> optimize="$optimize -funroll-loops"
112 +# : #> optimize="$optimize -funroll-all-loops"
113 +# : #x optimize="$optimize -fmove-all-movables"
114 +# : #x optimize="$optimize -freduce-all-givs"
115 +# : #? optimize="$optimize -fstrict-aliasing"
116 +# : #* optimize="$optimize -fstructure-noalias"
118 +# case "$host" in
119 +# arm*-*)
120 +# optimize="$optimize -fstrength-reduce"
121 +# ;;
122 +# mips*-*)
123 +# optimize="$optimize -fstrength-reduce"
124 +# optimize="$optimize -finline-functions"
125 +# ;;
126 +# i?86-*)
127 +# optimize="$optimize -fstrength-reduce"
128 +# ;;
129 +# powerpc-apple-*)
130 +# # this triggers an internal compiler error with gcc2
131 +# : #optimize="$optimize -fstrength-reduce"
133 +# # this is really only beneficial with gcc3
134 +# : #optimize="$optimize -finline-functions"
135 +# ;;
136 +# *)
137 +# # this sometimes provokes bugs in gcc 2.95.2
138 +# : #optimize="$optimize -fstrength-reduce"
139 +# ;;
140 +# esac
141 +# ;;
142 +# esac
143 +#fi
145 case "$host" in
146 mips*-agenda-*)