libmad-0.15.1b-cflags.patch 4.8 KB

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