]> granicus.if.org Git - libvpx/commitdiff
Expand PIC default to macho64 and respect CONFIG_PIC from libvpx
authorJohann <johannkoenig@google.com>
Thu, 18 Feb 2016 01:56:29 +0000 (17:56 -0800)
committerJohann <johannkoenig@google.com>
Thu, 18 Feb 2016 01:56:29 +0000 (17:56 -0800)
Change-Id: I8df65c6e52141183344ee91a7f94e8f4d5687e2f

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

index c4fb5682acb286aadd730e9eee0fd3332407944c..d7d5bf28d85a9cb4782a9a61813a402edb7f3820 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 39218958a537de664bfc9d94aca839eea10c5537..229446f798c704a8ce42ab04d82c6b101a793895 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