Skip to contentSkip to conversation

test: fix build when disabling ipsec library

PATCH Applied David Marchand 3 participants 3 messages Jan 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: fix build when disabling ipsec library

Caught after pulling ipsec then compile in an existing build directory.

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

---
Did a simple fix, we might want to have something like a _LDLIBS-y variable but that's just cosmetic.

---
 test/test/Makefile | 2 ++
 1 file changed, 2 insertions(+)
test/test/Makefile +2 -0
index e7c8108..5641a59 100644
@@ -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
 
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines

-----Original Message-----
From: David Marchand [mailto:[email protected]]
Sent: Thursday, January 17, 2019 10:15 AM
To: [email protected]
Cc: Awal, Mohammad Abdul <[email protected]>; Iremonger, Bernard <[email protected]>; Ananyev, Konstantin <[email protected]>; Doherty, Declan <[email protected]>; [email protected]
Subject: [PATCH] test: fix build when disabling ipsec library

Caught after pulling ipsec then compile in an existing build directory.

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

---
Did a simple fix, we might want to have something like a _LDLIBS-y variable but that's just cosmetic.

---
 test/test/Makefile | 2 ++
 1 file changed, 2 insertions(+)
test/test/Makefile +0 -0
index e7c8108..5641a59 100644

test/test/Makefile SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c

Quoted 10 lines
test/test/Makefile +2 -1
@@ -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
 
--
Quoted 1 line

1.8.3.1

#2 lore raw

17/01/2019 13:20, Ananyev, Konstantin:

Quoted 10 lines

From: David Marchand [mailto:[email protected]]

Quoted 9 lines

Caught after pulling ipsec then compile in an existing build directory.

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

---
Did a simple fix, we might want to have something like a _LDLIBS-y variable but that's just cosmetic.

Quoted 3 lines
Quoted 1 line

---

Applied, thanks