]> granicus.if.org Git - libvpx/commitdiff
Expand PIC default to macho64 and respect CONFIG_PIC from libvpx
authorJohann <johannkoenig@google.com>
Tue, 28 Jul 2015 21:37:05 +0000 (14:37 -0700)
committerJohann <johannkoenig@google.com>
Fri, 7 Aug 2015 23:22:08 +0000 (16:22 -0700)
Change-Id: Ic8c07cc02c80953920f5f86b426a55114ea2cc44

third_party/x86inc/README.libvpx
third_party/x86inc/x86inc.asm.new

index 728c0ebd8d76601e8afae813e4f5702d0680cff2..eb5211583037bf735d443e83d1e9e9ce12722d94 100644 (file)
@@ -12,3 +12,4 @@ Get configuration from vpx_config.asm.
 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
index b4c30ca7daeb81cdf037d9874e269974fd12bae6..0c7e5b4ceb3ad52dbc9cc54c6a90c261a1b89a2e 100644 (file)
 
 %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