Add the honggfuzz binary as a dependency and keep symbols
This way honggfuzz is rebuilt if it has changed, when building a fuzzer.
Separately, keeping the symbols in the fuzzer binary is useful for crash triage.
Change-Id: I2fc5ca64ccf66d084158580da74e5397aa61c250
diff --git a/core/fuzz_test.mk b/core/fuzz_test.mk
index 29e1dde..2cc2e2c 100644
--- a/core/fuzz_test.mk
+++ b/core/fuzz_test.mk
@@ -22,7 +22,7 @@
LOCAL_STATIC_LIBRARIES += libFuzzer
else ifeq ($(my_fuzzer),honggfuzz)
LOCAL_STATIC_LIBRARIES += honggfuzz_libhfuzz
-
+LOCAL_REQUIRED_MODULES += honggfuzz
LOCAL_LDFLAGS += \
"-Wl,--wrap=strcmp" \
"-Wl,--wrap=strcasecmp" \
@@ -74,4 +74,8 @@
endif
endif
+ifndef LOCAL_STRIP_MODULE
+LOCAL_STRIP_MODULE := keep_symbols
+endif
+
include $(BUILD_EXECUTABLE)