summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-11-15 17:59:43 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-11-15 17:59:43 +0000
commitd9f3381e51f4fb3e8974d77cd93acb456f209f65 (patch)
tree3be89c3dbf03f48c7c263d77a1d5ab8b67d8a8f1 /llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
parent3b4423793827cff2712fd08c77804305540b62be (diff)
downloadbcm5719-llvm-d9f3381e51f4fb3e8974d77cd93acb456f209f65.tar.gz
bcm5719-llvm-d9f3381e51f4fb3e8974d77cd93acb456f209f65.zip
Resolve JIT runtime linking problems on Android.
Patch by James Lyon! llvm-svn: 194832
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
index 92ea13e5c4f..f58d31bf6ef 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud