Completely disable building oprofile on host.
Was trying to build some components even when HAVE_LIBBFD was false.
Change-Id: Ied9aefcc42070ae2e6cd7cc64f7323f72e64dd82
diff --git a/libutil/Android.mk b/libutil/Android.mk
index 4e4cde9..d1d8d65 100644
--- a/libutil/Android.mk
+++ b/libutil/Android.mk
@@ -40,6 +40,7 @@
include $(BUILD_STATIC_LIBRARY)
# Build libutil on host
+ifeq ($(HAVE_LIBBFD),true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= $(common_src)
@@ -50,4 +51,4 @@
LOCAL_MODULE := libutil
include $(BUILD_HOST_STATIC_LIBRARY)
-
+endif