Completely disable building oprofile on host.
Was trying to build some components even when HAVE_LIBBFD was false.
Change-Id: Ied9aefcc42070ae2e6cd7cc64f7323f72e64dd82
diff --git a/libregex/Android.mk b/libregex/Android.mk
index fc70ab3..ba1c4df 100644
--- a/libregex/Android.mk
+++ b/libregex/Android.mk
@@ -16,6 +16,7 @@
include $(LOCAL_PATH)/../common.mk
# Build libregex on host
+ifeq ($(HAVE_LIBBFD),true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
@@ -30,4 +31,4 @@
LOCAL_MODULE := libop_regex
include $(BUILD_HOST_STATIC_LIBRARY)
-
+endif