From 7c6f5a899134a0984cac34fc30aaa4b546821181 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 22 Aug 2014 14:55:25 -0700 Subject: Only the host part of the elfutils build should be conditional. Change-Id: I6be2c64a8da66ea1d6163154fbcb96683aff76dc --- 0.153/libelf/Android.mk | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to '0.153/libelf/Android.mk') 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 -- cgit v1.2.3