shithub: libvpx

Download patch

ref: 89ba55ed1cffee20b011a3164a73088f6e5ac223
parent: 25a2434752f36cbc393d368624b437080b2d2052
author: Johann <johannkoenig@google.com>
date: Tue Jul 28 10:37:05 EDT 2015

Expand PIC default to macho64 and respect CONFIG_PIC from libvpx

Change-Id: Ic8c07cc02c80953920f5f86b426a55114ea2cc44

--- a/third_party/x86inc/README.libvpx
+++ b/third_party/x86inc/README.libvpx
@@ -12,3 +12,4 @@
 Prefix functions with vpx by default.
 Manage name mangling (prefixing with '_') manually because 'PREFIX' does not
   exist in libvpx.
+Expand PIC default to macho64 and respect CONFIG_PIC from libvpx
--- a/third_party/x86inc/x86inc.asm.new
+++ b/third_party/x86inc/x86inc.asm.new
@@ -88,11 +88,15 @@
 
 %if WIN64
     %define PIC
+%elifidn __OUTPUT_FORMAT__,macho64
+    %define PIC
 %elif ARCH_X86_64 == 0
 ; x86_32 doesn't require PIC.
 ; Some distros prefer shared objects to be PIC, but nothing breaks if
 ; the code contains a few textrels, so we'll skip that complexity.
     %undef PIC
+%elif CONFIG_PIC
+    %define PIC
 %endif
 %ifdef PIC
     default rel