diff options
author | Johann <johannkoenig@google.com> | 2014-06-12 19:16:59 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2014-06-12 19:57:25 -0700 |
commit | 79afb5eb416ff7adc862bfe28aac3c69f173efdd (patch) | |
tree | 094ceef7443e94f38e5d50db9ce72f828dece1aa /vpx_ports | |
parent | 7336903545091a8bf29d7f341e3681f45ab35fc2 (diff) | |
download | libvpx-79afb5eb416ff7adc862bfe28aac3c69f173efdd.tar.gz |
Use lrand48 on Android
When building x86 assembly use lrand48 instead of the
undocumented inlined _rand function.
Android now supports rand()
https://android-review.googlesource.com/97731
but only for new versions. Original workaround:
https://gerrit.chromium.org/gerrit/15744
Change-Id: I130566837d5bfc9e54187ebe9807350d1a7dab2a
Diffstat (limited to 'vpx_ports')
-rw-r--r-- | vpx_ports/x86_abi_support.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vpx_ports/x86_abi_support.asm b/vpx_ports/x86_abi_support.asm index eccbfa35c..3814ef443 100644 --- a/vpx_ports/x86_abi_support.asm +++ b/vpx_ports/x86_abi_support.asm @@ -393,3 +393,14 @@ section .note.GNU-stack noalloc noexec nowrite progbits section .text %endif +; On Android platforms use lrand48 when building postproc routines. Prior to L +; rand() was not available. +%if CONFIG_POSTPROC=1 +%ifdef __ANDROID__ +extern sym(lrand48) +%define LIBVPX_RAND lrand48 +%else +extern sym(rand) +%define LIBVPX_RAND rand +%endif +%endif ; CONFIG_POSTPROC |