shithub: libvpx

Download patch

ref: c5dc3373dbd442ea299bacf276c4258fa7ce0559
parent: 8a4336ed2edea09b67f49828df1f8c526a85a7a6
author: Johann <johannkoenig@google.com>
date: Tue Jan 9 07:46:45 EST 2018

work around pic issue with gcc 6

Enable pic when building sse2 or higher optimizations.

BUG=webm:1464

Change-Id: I36c6e83ed716649f3d9ee10ce3aa9bb847cac2d9

--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1312,6 +1312,11 @@
             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