summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2013-10-29 11:05:45 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2013-10-29 11:05:45 -0700
commita8bbe7d808464f8187f3b61efdca690c2977cd55 (patch)
tree70924a2fa205d4684cc0830e2fbf2007416d2d34
parenta8e31d624aa50c15d8bf8e403ac8256b780eceed (diff)
parent8b47e1cfe1e5c65cc30b0047d8f30d2f48fa6123 (diff)
downloadlibvpx-a8bbe7d808464f8187f3b61efdca690c2977cd55.tar
libvpx-a8bbe7d808464f8187f3b61efdca690c2977cd55.tar.gz
libvpx-a8bbe7d808464f8187f3b61efdca690c2977cd55.tar.bz2
libvpx-a8bbe7d808464f8187f3b61efdca690c2977cd55.zip
Merge "Disable aliasing when building with Clang"
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 297cec463..7a6e4f023 100755
--- a/configure
+++ b/configure
@@ -608,7 +608,12 @@ process_toolchain() {
check_add_cflags -Wuninitialized
check_add_cflags -Wunused-variable
case ${CC} in
- *clang*) ;;
+ *clang*)
+ # libvpx and/or clang have issues with aliasing:
+ # https://code.google.com/p/webm/issues/detail?id=603
+ # work around them until they are fixed
+ check_add_cflags -fno-strict-aliasing
+ ;;
*) check_add_cflags -Wunused-but-set-variable ;;
esac
enabled extra_warnings || check_add_cflags -Wno-unused-function