libmad-optimize.diff 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Index: libmad-0.15.1b/configure.ac
  2. ===================================================================
  3. --- libmad-0.15.1b.orig/configure.ac 2008-03-07 20:31:23.000000000 +0000
  4. +++ libmad-0.15.1b/configure.ac 2008-03-07 20:34:26.000000000 +0000
  5. @@ -124,71 +124,7 @@
  6. if test "$GCC" = yes
  7. then
  8. - if test -z "$arch"
  9. - then
  10. - case "$host" in
  11. - i386-*) ;;
  12. - i?86-*) arch="-march=i486" ;;
  13. - arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  14. - armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  15. - powerpc-*) ;;
  16. - mips*-agenda-*) arch="-mcpu=vr4100" ;;
  17. - mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  18. - esac
  19. - fi
  20. -
  21. - case "$optimize" in
  22. - -O|"-O "*)
  23. - optimize="-O"
  24. - optimize="$optimize -fforce-mem"
  25. - optimize="$optimize -fforce-addr"
  26. - : #x optimize="$optimize -finline-functions"
  27. - : #- optimize="$optimize -fstrength-reduce"
  28. - optimize="$optimize -fthread-jumps"
  29. - optimize="$optimize -fcse-follow-jumps"
  30. - optimize="$optimize -fcse-skip-blocks"
  31. - : #x optimize="$optimize -frerun-cse-after-loop"
  32. - : #x optimize="$optimize -frerun-loop-opt"
  33. - : #x optimize="$optimize -fgcse"
  34. - optimize="$optimize -fexpensive-optimizations"
  35. - optimize="$optimize -fregmove"
  36. - : #* optimize="$optimize -fdelayed-branch"
  37. - : #x optimize="$optimize -fschedule-insns"
  38. - optimize="$optimize -fschedule-insns2"
  39. - : #? optimize="$optimize -ffunction-sections"
  40. - : #? optimize="$optimize -fcaller-saves"
  41. - : #> optimize="$optimize -funroll-loops"
  42. - : #> optimize="$optimize -funroll-all-loops"
  43. - : #x optimize="$optimize -fmove-all-movables"
  44. - : #x optimize="$optimize -freduce-all-givs"
  45. - : #? optimize="$optimize -fstrict-aliasing"
  46. - : #* optimize="$optimize -fstructure-noalias"
  47. -
  48. - case "$host" in
  49. - arm*-*)
  50. - optimize="$optimize -fstrength-reduce"
  51. - ;;
  52. - mips*-*)
  53. - optimize="$optimize -fstrength-reduce"
  54. - optimize="$optimize -finline-functions"
  55. - ;;
  56. - i?86-*)
  57. - optimize="$optimize -fstrength-reduce"
  58. - ;;
  59. - powerpc-apple-*)
  60. - # this triggers an internal compiler error with gcc2
  61. - : #optimize="$optimize -fstrength-reduce"
  62. -
  63. - # this is really only beneficial with gcc3
  64. - : #optimize="$optimize -finline-functions"
  65. - ;;
  66. - *)
  67. - # this sometimes provokes bugs in gcc 2.95.2
  68. - : #optimize="$optimize -fstrength-reduce"
  69. - ;;
  70. - esac
  71. - ;;
  72. - esac
  73. + optimize="-O2"
  74. fi
  75. case "$host" in