Do not set it when building with 'nasm'
Change-Id: Iff2acf22543f5899f6eefa7624821cc6270a0923
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.
%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
%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