Use libvpx defines to set name mangling rules
authorJohann <johannkoenig@google.com>
Tue, 28 Jul 2015 22:06:50 +0000 (15:06 -0700)
committerJohann <johannkoenig@google.com>
Fri, 7 Aug 2015 23:22:02 +0000 (16:22 -0700)
Change-Id: I03986bf2b05032d8a29e5bd629f7f6703269ab13

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

index fcb49e1..728c0eb 100644 (file)
@@ -10,3 +10,5 @@ defines that help automatically allow assembly to work cross-platform.
 Local Modifications:
 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.
index fbd95a6..b4c30ca 100644 (file)
     %endif
 %endif
 
-%ifdef PREFIX
-    %define mangle(x) _ %+ x
-%else
+%ifidn   __OUTPUT_FORMAT__,elf32
+    %define mangle(x) x
+%elifidn __OUTPUT_FORMAT__,elf64
+    %define mangle(x) x
+%elifidn __OUTPUT_FORMAT__,x64
     %define mangle(x) x
+%elifidn __OUTPUT_FORMAT__,win64
+    %define mangle(x) x
+%else
+    %define mangle(x) _ %+ x
 %endif
 
 %macro SECTION_RODATA 0-1 16