From 3d969a1c7db5060ca6ea99f877d451d7d4a5aa23 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 30 Mar 2020 09:11:54 +0200 Subject: [PATCH] build: wrap fuzz targets in guard to fix 'make tags' --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 1fb4326c75..c47012c346 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -551,6 +551,7 @@ suricata_LDFLAGS = $(all_libraries) ${SECLDFLAGS} suricata_LDADD = $(HTP_LDADD) $(RUST_LDADD) suricata_DEPENDENCIES = $(RUST_SURICATA_LIB) +if BUILD_FUZZTARGETS nodist_fuzz_applayerprotodetectgetproto_SOURCES = tests/fuzz/fuzz_applayerprotodetectgetproto.c $(COMMON_SOURCES) fuzz_applayerprotodetectgetproto_LDFLAGS = $(all_libraries) ${SECLDFLAGS} fuzz_applayerprotodetectgetproto_LDADD = $(RUST_SURICATA_LIB) $(HTP_LDADD) $(RUST_LDADD) @@ -627,6 +628,7 @@ else endif # force usage of CXX for linker nodist_EXTRA_fuzz_mimedecparseline_SOURCES = force-cxx-linking.cxx +endif # default CFLAGS AM_CFLAGS = ${OPTIMIZATION_CFLAGS} ${GCC_CFLAGS} ${CLANG_CFLAGS} \ -- 2.47.2