X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=inline;f=config%2Fmeson.build;h=0419607d30617af352e64452c19a4873b3484f1f;hb=4fb27c1dfe054972bec62fdeb6fc91680ccb3f3c;hp=b91778e83a7f224e89f2a82cc267568808687131;hpb=d5555fc900a9e95c5ca5bd0773c2720270e49d86;p=dpdk.git diff --git a/config/meson.build b/config/meson.build index b91778e83a..0419607d30 100644 --- a/config/meson.build +++ b/config/meson.build @@ -76,11 +76,11 @@ if numa_dep.found() and cc.has_header('numaif.h') endif # check for strlcpy -if host_machine.system() == 'linux' and cc.find_library('bsd', - required: false).found() and cc.has_header('bsd/string.h') - dpdk_conf.set('RTE_USE_LIBBSD', 1) - add_project_link_arguments('-lbsd', language: 'c') - dpdk_extra_ldflags += '-lbsd' +if host_machine.system() == 'linux' + libbsd = dependency('libbsd', required: false) + if libbsd.found() + dpdk_conf.set('RTE_USE_LIBBSD', 1) + endif endif # add -include rte_config to cflags