From: Sergio Gonzalez Monroy Date: Thu, 9 Jun 2016 08:42:44 +0000 (+0100) Subject: examples/ipsec-secgw: add debug build option X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=973d3d82858285b8755112c7560895bd9e8e10c4;p=dpdk.git examples/ipsec-secgw: add debug build option Add support for building the application with DEBUG=1. This option adds the compiler stack protection flag and enables extra output in the application. Also remove unnecessary VPATH setup. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Pablo de Lara --- diff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile index f9b59c2215..6780ad53c7 100644 --- a/examples/ipsec-secgw/Makefile +++ b/examples/ipsec-secgw/Makefile @@ -46,8 +46,9 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) CFLAGS_sa.o += -diag-disable=vec endif - -VPATH += $(SRCDIR)/librte_ipsec +ifeq ($(DEBUG),1) +CFLAGS += -DIPSEC_DEBUG -fstack-protector-all +endif # # all source are stored in SRCS-y