From 20371dbdf6a0f65beeeb791e4d22c5b595c88353 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 20 Apr 2025 00:35:47 +0200 Subject: [PATCH] build: add EXTRA_CFLAGS This can be used from command line to add some build options without running a full configure. This is convenient for single run build. --- src/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 193fe49ced..f7b451e4fd 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1228,6 +1228,8 @@ EXTRA_DIST = \ tests/stream-tcp.c \ tests/output-json-stats.c +EXTRA_CFLAGS = + install-headers: mkdir -p $(DESTDIR)${includedir}/suricata for header in $(noinst_HEADERS); do \ @@ -1422,7 +1424,7 @@ endif # default CFLAGS AM_CFLAGS = ${OPTIMIZATION_CFLAGS} ${GCC_CFLAGS} ${CLANG_CFLAGS} \ - ${SECCFLAGS} ${PCAP_CFLAGS} \ + ${SECCFLAGS} ${PCAP_CFLAGS} ${EXTRA_CFLAGS} \ -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations \ -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast \ -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute \