]> granicus.if.org Git - libvpx/commitdiff
silence c++ abi warning
authorJohann <johann.koenig@duck.com>
Thu, 30 Aug 2018 21:07:02 +0000 (14:07 -0700)
committerJohann <johann.koenig@duck.com>
Thu, 30 Aug 2018 21:28:20 +0000 (14:28 -0700)
Linking c++ libraries built with gcc 6 and gcc 7 on arm
generates some warnings because of incompatibilities between those
compilers:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728

libvpx does not generate a c++ library. C++ is only used for examples and tests.

Change-Id: I3d5d5ef3fb66743bff26a833d6641898975e9f71

configure

index 6c0adc7f920dd3fc4a6289fe6f3a22e8c910b18a..8f73067aabc6169209fc4c5be7171c4bcc57ccb8 100755 (executable)
--- a/configure
+++ b/configure
@@ -634,6 +634,12 @@ process_toolchain() {
         # Avoid this warning for third_party C++ sources. Some reorganization
         # would be needed to apply this only to test/*.cc.
         check_cflags -Wshorten-64-to-32 && add_cflags_only -Wshorten-64-to-32
+
+        # Quiet gcc 6 vs 7 abi warnings:
+        # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728
+        if enabled arm; then
+          check_add_cxxflags -Wno-psabi
+        fi
     fi
 
     if enabled icc; then