From 09f1d0446737492f2f6e3ec5b668ba6ebf730ab5 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 12 Feb 2015 10:31:26 -0800 Subject: Do not include genericStds_linux.cpp. The __aeabi_memcpy functions are already defined in Android libc. Redefining them to call memcpy will become recursive when clang/llvm converts the memcpy call to __aeabi_memcpy. With this change, we can enable clang/llvm by removing LOCAL_CLANG from Android.mk. BUG: 12216385 Change-Id: I8b8b4ba7f3ff1e66f8110fc3b6356865a582c1d8 --- libSYS/src/genericStds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libSYS/src/genericStds.cpp') diff --git a/libSYS/src/genericStds.cpp b/libSYS/src/genericStds.cpp index 3381e37..72b5467 100644 --- a/libSYS/src/genericStds.cpp +++ b/libSYS/src/genericStds.cpp @@ -116,7 +116,7 @@ amm-info@iis.fraunhofer.de /* Include OS/System specific implementations. */ -#if defined(__linux__) /* cppp replaced: elif */ +#if defined(__linux__) && !defined(__ANDROID__) /* cppp replaced: elif */ #include "linux/genericStds_linux.cpp" #endif -- cgit v1.2.3