]> granicus.if.org Git - libvpx/commitdiff
work around pic issue with gcc 6
authorJohann <johannkoenig@google.com>
Tue, 9 Jan 2018 20:46:45 +0000 (12:46 -0800)
committerJohann <johannkoenig@google.com>
Tue, 9 Jan 2018 20:46:45 +0000 (12:46 -0800)
Enable pic when building sse2 or higher optimizations.

BUG=webm:1464

Change-Id: I36c6e83ed716649f3d9ee10ce3aa9bb847cac2d9

build/make/configure.sh

index d7e40b83f1942393a6ec6a5888f994db68d7a0d8..683b4303749c5d69f1ba9296da30258bc99fc7dd 100644 (file)
@@ -1312,6 +1312,11 @@ EOF
             check_gcc_machine_option ${ext%_*} $ext
           fi
         fi
+
+        # https://bugs.chromium.org/p/webm/issues/detail?id=1464
+        # The assembly optimizations for vpx_sub_pixel_variance do not link with
+        # gcc 6.
+        enabled sse2 && soft_enable pic
       done
 
       if enabled external_build; then