aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libvpx/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libvpx/files/patch-configure')
-rw-r--r--multimedia/libvpx/files/patch-configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/multimedia/libvpx/files/patch-configure b/multimedia/libvpx/files/patch-configure
index 2a15f60f8ae9..bfe8a2eb7893 100644
--- a/multimedia/libvpx/files/patch-configure
+++ b/multimedia/libvpx/files/patch-configure
@@ -11,3 +11,28 @@ $FreeBSD$
all_platforms="${all_platforms} generic-gnu"
# all_targets is a list of all targets that can be configured
+@@ -611,15 +612,15 @@
+ check_add_cflags -Wimplicit-function-declaration
+ check_add_cflags -Wuninitialized
+ check_add_cflags -Wunused-variable
+- case ${CC} in
+- *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
++ if ${CC} -v 2>&1 | grep "clang version" >/dev/null; then
++ # 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
++ CLANG_NO_IAS=-no-integrated-as
++ else
++ check_add_cflags -Wunused-but-set-variable
++ fi
+ enabled extra_warnings || check_add_cflags -Wno-unused-function
+ fi
+