From: David Marchand Date: Mon, 8 Nov 2021 10:09:19 +0000 (+0100) Subject: test: fix dependency on pcapng X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6f01a3ca5c7f9b2e40fcec39cc8667bb4c68a006;p=dpdk.git 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 --- 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')