From d9f3381e51f4fb3e8974d77cd93acb456f209f65 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Fri, 15 Nov 2013 17:59:43 +0000 Subject: Resolve JIT runtime linking problems on Android. Patch by James Lyon! llvm-svn: 194832 --- llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine/JIT') 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. -- cgit v1.2.3