summaryrefslogtreecommitdiffstats
path: root/0.153/libelf/Android.mk
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-08-22 22:05:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-08-22 22:05:58 +0000
commitdad1eecaf9bcc826dacdf2855b7bd1adddd02a59 (patch)
treee64acee178a94e8ded4e0179d960f7f73373bace /0.153/libelf/Android.mk
parentf73f8d6e844c98a03e43a826ce7a5b430b0a22db (diff)
parent7c6f5a899134a0984cac34fc30aaa4b546821181 (diff)
downloadandroid_external_elfutils-dad1eecaf9bcc826dacdf2855b7bd1adddd02a59.tar.gz
android_external_elfutils-dad1eecaf9bcc826dacdf2855b7bd1adddd02a59.tar.bz2
android_external_elfutils-dad1eecaf9bcc826dacdf2855b7bd1adddd02a59.zip
Merge "Only the host part of the elfutils build should be conditional."
Diffstat (limited to '0.153/libelf/Android.mk')
-rwxr-xr-x0.153/libelf/Android.mk23
1 files changed, 10 insertions, 13 deletions
diff --git a/0.153/libelf/Android.mk b/0.153/libelf/Android.mk
index 76052435..2a733a5b 100755
--- a/0.153/libelf/Android.mk
+++ b/0.153/libelf/Android.mk
@@ -14,17 +14,6 @@
LOCAL_PATH := $(call my-dir)
-supported_platforms := linux
-cur_platform := $(filter $(HOST_OS),$(supported_platforms))
-
-ifdef cur_platform
-
-#
-# host libelf
-#
-
-include $(CLEAR_VARS)
-
LIBELF_SRC_FILES := \
elf32_checksum.c \
elf32_fsize.c \
@@ -136,6 +125,14 @@ LIBELF_SRC_FILES := \
libelf_next_prime.c \
nlist.c
+ifeq ($(HOST_OS),linux)
+
+#
+# host libelf
+#
+
+include $(CLEAR_VARS)
+
LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)
LOCAL_C_INCLUDES := \
@@ -160,6 +157,8 @@ LOCAL_MODULE := libelf
include $(BUILD_HOST_STATIC_LIBRARY)
+endif # linux
+
#
# target libelf
#
@@ -185,5 +184,3 @@ LOCAL_CFLAGS += -include $(LOCAL_PATH)/../bionic-fixup/AndroidFixup.h
LOCAL_MODULE := libelf
include $(BUILD_STATIC_LIBRARY)
-
-endif #cur_platform