[dpdk-dev] [PATCH 2/2] test: fix dependency on pcapng
David Marchand
david.marchand at redhat.com
Mon Nov 8 11:09:19 CET 2021
The unit test code should depend on the pcapng library.
Fixes: 7a944656b33f ("test/pcapng: test pcapng library")
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
app/test/meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/app/test/meson.build b/app/test/meson.build
index a12eadbb5a..830db76661 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -412,7 +412,10 @@ endif
if dpdk_conf.has('RTE_HAS_LIBPCAP')
ext_deps += pcap_dep
- test_sources += 'test_pcapng.c'
+ if dpdk_conf.has('RTE_LIB_PCAPNG')
+ test_deps += 'pcapng'
+ test_sources += 'test_pcapng.c'
+ endif
endif
if dpdk_conf.has('RTE_LIB_POWER')
--
2.23.0
More information about the dev
mailing list