test: fix build when disabling IPsec library
authorDavid Marchand <david.marchand@redhat.com>
Thu, 17 Jan 2019 10:15:22 +0000 (11:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jan 2019 23:14:13 +0000 (00:14 +0100)
Caught after pulling ipsec then compile in an existing build directory.

Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
test/test/Makefile

index e7c8108..5641a59 100644 (file)
@@ -208,7 +208,9 @@ SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c
 SRCS-$(CONFIG_RTE_LIBRTE_BPF) += test_bpf.c
 
 SRCS-$(CONFIG_RTE_LIBRTE_IPSEC) += test_ipsec.c
+ifeq ($(CONFIG_RTE_LIBRTE_IPSEC),y)
 LDLIBS += -lrte_ipsec
+endif
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API