Line 0
Link Here
|
|
|
1 |
--- lib-src/libmad/configure.ac.orig 2016-01-08 22:05:48 UTC |
2 |
+++ lib-src/libmad/configure.ac |
3 |
@@ -141,22 +141,25 @@ then |
4 |
|
5 |
case "$optimize" in |
6 |
-O|"-O "*) |
7 |
+dnl (using audio/libmad/files/patch-configure as reference) |
8 |
+AC_PROG_GREP |
9 |
+AS_IF([$CC -v 2>&1 | $GREP -q clang], [CLANG=yes], [CLANG=]) |
10 |
optimize="-O" |
11 |
: #x optimize="$optimize -fforce-mem" |
12 |
: #x optimize="$optimize -fforce-addr" |
13 |
: #x optimize="$optimize -finline-functions" |
14 |
: #- optimize="$optimize -fstrength-reduce" |
15 |
- optimize="$optimize -fthread-jumps" |
16 |
- optimize="$optimize -fcse-follow-jumps" |
17 |
- optimize="$optimize -fcse-skip-blocks" |
18 |
+ if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fthread-jumps" ; fi |
19 |
+ if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fcse-follow-jumps" ; fi |
20 |
+ if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fcse-skip-blocks" ; fi |
21 |
: #x optimize="$optimize -frerun-cse-after-loop" |
22 |
: #x optimize="$optimize -frerun-loop-opt" |
23 |
: #x optimize="$optimize -fgcse" |
24 |
optimize="$optimize -fexpensive-optimizations" |
25 |
- optimize="$optimize -fregmove" |
26 |
+ if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fregmove" ; fi |
27 |
: #* optimize="$optimize -fdelayed-branch" |
28 |
: #x optimize="$optimize -fschedule-insns" |
29 |
- optimize="$optimize -fschedule-insns2" |
30 |
+ if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fschedule-insns2" ; fi |
31 |
: #? optimize="$optimize -ffunction-sections" |
32 |
: #? optimize="$optimize -fcaller-saves" |
33 |
: #> optimize="$optimize -funroll-loops" |