From ad23ef1cd507e3723f5a52ab8cae5e6830755725 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 14 Dec 2014 20:59:16 +0100 Subject: build: restore --disable-debug Fix fallout from the automake conversion. Display after configuration if it is enabled or not. Reported-by: Steven Barth Signed-off-by: Pablo Neira Ayuso --- src/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index d53c347d..378424db 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,8 +3,11 @@ sbin_PROGRAMS = nft CLEANFILES = scanner.c parser_bison.c AM_CPPFLAGS = -I$(top_srcdir)/include -AM_CPPFLAGS += -DDEFAULT_INCLUDE_PATH="\"${sysconfdir}\"" -DDEBUG \ +AM_CPPFLAGS += -DDEFAULT_INCLUDE_PATH="\"${sysconfdir}\"" \ ${LIBMNL_CFLAGS} ${LIBNFTNL_CFLAGS} +if BUILD_DEBUG +AM_CPPFLAGS += -g -DDEBUG +endif AM_CFLAGS = -Wall \ -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \ -- cgit v1.2.3