summaryrefslogtreecommitdiffstats
path: root/0.153/libelf
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2014-08-29 10:58:43 -0700
committerChih-Hung Hsieh <chh@google.com>2014-08-29 15:31:25 -0700
commit085fad490cd321b6a0dd898de04a5662185ceb4f (patch)
tree727efe6258e82cdb4f27820e3210580c1a4c7f30 /0.153/libelf
parentdad1eecaf9bcc826dacdf2855b7bd1adddd02a59 (diff)
downloadandroid_external_elfutils-085fad490cd321b6a0dd898de04a5662185ceb4f.tar.gz
android_external_elfutils-085fad490cd321b6a0dd898de04a5662185ceb4f.tar.bz2
android_external_elfutils-085fad490cd321b6a0dd898de04a5662185ceb4f.zip
Disable Clang for all elfutils libraries.
Three of them have nested functions and one has some warning about K&R promoted parameter. BUG: 17281788 Change-Id: I4ce397876af7c47153e27e11869a7659dbf1b3e3
Diffstat (limited to '0.153/libelf')
-rwxr-xr-x0.153/libelf/Android.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/0.153/libelf/Android.mk b/0.153/libelf/Android.mk
index 2a733a5b..e1a76cf5 100755
--- a/0.153/libelf/Android.mk
+++ b/0.153/libelf/Android.mk
@@ -133,6 +133,9 @@ ifeq ($(HOST_OS),linux)
include $(CLEAR_VARS)
+# Clang has no nested functions.
+LOCAL_CLANG := false
+
LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)
LOCAL_C_INCLUDES := \
@@ -147,9 +150,6 @@ LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
LOCAL_CFLAGS += -Wno-pointer-arith
-# can't build libelf with clang
-LOCAL_CLANG := false
-
# to fix machine-dependent issues
LOCAL_CFLAGS += -include $(LOCAL_PATH)/../host-$(HOST_OS)-fixup/AndroidFixup.h
@@ -165,6 +165,9 @@ endif # linux
include $(CLEAR_VARS)
+# Clang has no nested functions.
+LOCAL_CLANG := false
+
LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)
LOCAL_C_INCLUDES := \