summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-02 17:51:54 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-02 23:07:14 +0200
commit12784d9b6e2003d258958a0a986e0a48c6c3db45 (patch)
treecff3dcb7fd05fd09d83eedae3578df7f13bfa32f /config
parente09848337cac0f18833557034b181a48af517193 (diff)
downloaddpdk-draft-windows-12784d9b6e2003d258958a0a986e0a48c6c3db45.zip
dpdk-draft-windows-12784d9b6e2003d258958a0a986e0a48c6c3db45.tar.gz
dpdk-draft-windows-12784d9b6e2003d258958a0a986e0a48c6c3db45.tar.xz
build: add libbsd to pkg-config file if enabled
If libbsd is enabled in DPDK, the strlcpy and strlcat functions in rte_string_fns.h redirect to the varients in libbsd, only using the fallbacks if it is not enabled. Therefore, if libbsd is enabled, it needs to be called out as a DPDK dependency in the pkgconfig file. To ensure that we don't have undefined variables on non-Linux platforms, we can remove the linux condition around the libbsd check - no harm comes in looking for it on other OS, since it's an optional dependency. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/meson.build b/config/meson.build
index 3678348..0d25646 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -132,12 +132,10 @@ if numa_dep.found() and cc.has_header('numaif.h')
dpdk_extra_ldflags += '-lnuma'
endif
-# check for strlcpy
-if is_linux
- libbsd = dependency('libbsd', required: false)
- if libbsd.found()
- dpdk_conf.set('RTE_USE_LIBBSD', 1)
- endif
+# check for libbsd
+libbsd = dependency('libbsd', required: false)
+if libbsd.found()
+ dpdk_conf.set('RTE_USE_LIBBSD', 1)
endif
# add -include rte_config to cflags