From 6f01a3ca5c7f9b2e40fcec39cc8667bb4c68a006 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 8 Nov 2021 11:09:19 +0100 Subject: [PATCH] test: fix dependency on pcapng The unit test code should depend on the pcapng library. Fixes: 7a944656b33f ("test/pcapng: test pcapng library") Signed-off-by: David Marchand --- 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 abab3fbb1d..a968abac76 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -413,7 +413,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')