diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-11-15 17:59:43 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-11-15 17:59:43 +0000 |
commit | 1ab6084c9e785415da3a48083d53b25a38f0fb48 (patch) | |
tree | 487f49cda17b50a2cb7ec7d09ed05b0b712c4576 /lib/ExecutionEngine/JIT | |
parent | 48079e0fef9301442eb787d2234ea99ba3f06fa8 (diff) | |
download | llvm-1ab6084c9e785415da3a48083d53b25a38f0fb48.tar.gz llvm-1ab6084c9e785415da3a48083d53b25a38f0fb48.tar.bz2 llvm-1ab6084c9e785415da3a48083d53b25a38f0fb48.tar.xz |
Resolve JIT runtime linking problems on Android.
Patch by James Lyon!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index 92ea13e5c4..f58d31bf6e 100644 --- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp @@ -794,7 +794,7 @@ static void runAtExitHandlers() { // not inlined, and hiding their real definitions in a separate archive file // that the dynamic linker can't see. For more info, search for // 'libc_nonshared.a' on Google, or read http://llvm.org/PR274. -#if defined(__linux__) +#if defined(__linux__) && defined(__GLIBC__) /* stat functions are redirecting to __xstat with a version number. On x86-64 * linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat' * available as an exported symbol, so we have to add it explicitly. |