summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2016-06-09 09:42:44 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-06-21 12:06:09 +0200
commit973d3d82858285b8755112c7560895bd9e8e10c4 (patch)
tree40f15014ebb97f34f0c15bc282f198687aca00df /examples
parent4e94250019102442adf00fc4c992e65ebe65e1b1 (diff)
downloaddpdk-973d3d82858285b8755112c7560895bd9e8e10c4.zip
dpdk-973d3d82858285b8755112c7560895bd9e8e10c4.tar.gz
dpdk-973d3d82858285b8755112c7560895bd9e8e10c4.tar.xz
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 <sergio.gonzalez.monroy@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ipsec-secgw/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile
index f9b59c2..6780ad5 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