Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Depend on libbsd if DPDK depends on it
If libbsd-dev is installed during build time, DPDK will depend on it without a way to turn this off. config/meson.build has the following: libbsd = dependency('libbsd', required: false, method: 'pkg-config') if libbsd.found() dpdk_conf.set('RTE_USE_LIBBSD', 1) endif And lib/eal/include/rte_string_fns.h contains: #ifdef RTE_USE_LIBBSD #include <bsd/string.h> #else /* no BSD header files, create own */ #define strlcpy(dst, src, size) rte_strlcpy(dst, src, size) #define strlcat(dst, src, size) rte_strlcat(dst, src, size) #endif /* RTE_USE_LIBBSD */ #endif /* FREEBSD */ Accordingly the only way to address this inflexibility is to ensure that dpdk dependencies are appropriately transferred to INTERFACE_LINK_LIBRARIES of the dpdk library. Signed-off-by: Povilas Kanapickas <[email protected]>
- Loading branch information