diff options
author | Johann <johannkoenig@google.com> | 2016-02-17 17:55:18 -0800 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2016-02-17 17:55:18 -0800 |
commit | 4de9641f1aca8f64977c2b1616c81c8ef0c5c511 (patch) | |
tree | b229a15fbd84e21d3e923d2174f10f4528ca15b8 /third_party | |
parent | 2d6393a98d5089d52cea3353e3a9e0b52a28c3f5 (diff) | |
download | libvpx-4de9641f1aca8f64977c2b1616c81c8ef0c5c511.tar.gz |
Use libvpx defines to set name mangling rules
Change-Id: Ie5dbfe73bdb6132047f9ab7d5716714d50befea5
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/x86inc/README.libvpx | 2 | ||||
-rw-r--r-- | third_party/x86inc/x86inc.asm | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/third_party/x86inc/README.libvpx b/third_party/x86inc/README.libvpx index 5e9bf9433..c4fb5682a 100644 --- a/third_party/x86inc/README.libvpx +++ b/third_party/x86inc/README.libvpx @@ -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. diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm index 94d85929a..39218958a 100644 --- a/third_party/x86inc/x86inc.asm +++ b/third_party/x86inc/x86inc.asm @@ -75,6 +75,15 @@ %define FORMAT_ELF 1 %endif +; Set PREFIX for libvpx builds. +%if FORMAT_ELF + %undef PREFIX +%elif WIN64 + %undef PREFIX +%else + %define PREFIX +%endif + %ifdef PREFIX %define mangle(x) _ %+ x %else |