|
Lines 11-13
Link Here
|
| 11 |
all_platforms="${all_platforms} generic-gnu" |
11 |
all_platforms="${all_platforms} generic-gnu" |
| 12 |
|
12 |
|
| 13 |
# all_targets is a list of all targets that can be configured |
13 |
# all_targets is a list of all targets that can be configured |
|
|
14 |
@@ -611,15 +612,15 @@ |
| 15 |
check_add_cflags -Wimplicit-function-declaration |
| 16 |
check_add_cflags -Wuninitialized |
| 17 |
check_add_cflags -Wunused-variable |
| 18 |
- case ${CC} in |
| 19 |
- *clang*) |
| 20 |
- # libvpx and/or clang have issues with aliasing: |
| 21 |
- # https://code.google.com/p/webm/issues/detail?id=603 |
| 22 |
- # work around them until they are fixed |
| 23 |
- check_add_cflags -fno-strict-aliasing |
| 24 |
- ;; |
| 25 |
- *) check_add_cflags -Wunused-but-set-variable ;; |
| 26 |
- esac |
| 27 |
+ if ${CC} -v 2>&1 | grep "clang version" >/dev/null; then |
| 28 |
+ # libvpx and/or clang have issues with aliasing: |
| 29 |
+ # https://code.google.com/p/webm/issues/detail?id=603 |
| 30 |
+ # work around them until they are fixed |
| 31 |
+ check_add_cflags -fno-strict-aliasing |
| 32 |
+ CLANG_NO_IAS=-no-integrated-as |
| 33 |
+ else |
| 34 |
+ check_add_cflags -Wunused-but-set-variable |
| 35 |
+ fi |
| 36 |
enabled extra_warnings || check_add_cflags -Wno-unused-function |
| 37 |
fi |
| 38 |
|