]> granicus.if.org Git - libvpx/commitdiff
Set 'private_extern' visibility for macho targets
authorJohann <johannkoenig@google.com>
Thu, 18 Feb 2016 02:08:13 +0000 (18:08 -0800)
committerJohann <johannkoenig@google.com>
Thu, 18 Feb 2016 02:08:13 +0000 (18:08 -0800)
Do not set it when building with 'nasm'

Change-Id: Iff2acf22543f5899f6eefa7624821cc6270a0923

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

index d7d5bf28d85a9cb4782a9a61813a402edb7f3820..2a75c4ad14140be686fe8f0840b8ec3b41247f40 100644 (file)
@@ -13,3 +13,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
+Set 'private_extern' visibility for macho targets.
index 229446f798c704a8ce42ab04d82c6b101a793895..112e372883495ebdf1a97b5e044aa54d35b8a91e 100644 (file)
     %define FORMAT_ELF 1
 %endif
 
+%define FORMAT_MACHO 0
+%ifidn __OUTPUT_FORMAT__,macho32
+     %define FORMAT_MACHO 1
+%elifidn __OUTPUT_FORMAT__,macho64
+     %define FORMAT_MACHO 1
+%endif
+
 ; Set PREFIX for libvpx builds.
 %if FORMAT_ELF
     %undef PREFIX
@@ -709,6 +716,12 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
     %xdefine current_function_section __SECT__
     %if FORMAT_ELF
         global %2:function %%VISIBILITY
+    %elif FORMAT_MACHO
+        %ifdef __NASM_VER__
+            global %2
+        %else
+            global %2:private_extern
+        %endif
     %else
         global %2
     %endif