net/axgbe: add minimal init and uninit support
[dpdk.git] / config / meson.build
index f8c6757..77af5d8 100644 (file)
@@ -38,6 +38,13 @@ if numa_dep.found() and cc.has_header('numaif.h')
        dpdk_extra_ldflags += '-lnuma'
 endif
 
+# check for strlcpy
+if host_machine.system() == 'linux' and cc.find_library('bsd', required: false).found()
+       dpdk_conf.set('RTE_USE_LIBBSD', 1)
+       add_project_link_arguments('-lbsd', language: 'c')
+       dpdk_extra_ldflags += '-lbsd'
+endif
+
 # add -include rte_config to cflags
 add_project_arguments('-include', 'rte_config.h', language: 'c')