X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Fmeson.build;h=8a79878ff31f44eecb98383e06248fc4751cf978;hb=b60fd5f8b1ce8f0a2cf6ceb1e690c07977660bd0;hp=bc0cd78f90635b5101778703b6bc2980cbca614a;hpb=c23c66b31baf6e7937fe099a6f9e691182e8cafa;p=dpdk.git diff --git a/lib/librte_bpf/meson.build b/lib/librte_bpf/meson.build index bc0cd78f90..8a79878ff3 100644 --- a/lib/librte_bpf/meson.build +++ b/lib/librte_bpf/meson.build @@ -8,7 +8,7 @@ sources = files('bpf.c', 'bpf_pkt.c', 'bpf_validate.c') -if arch_subdir == 'x86' and cc.sizeof('void *') == 8 +if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64') sources += files('bpf_jit_x86.c') endif @@ -18,8 +18,8 @@ install_headers = files('bpf_def.h', deps += ['mbuf', 'net', 'ethdev'] -dep = cc.find_library('elf', required: false) -if dep.found() == true and cc.has_header('libelf.h', dependencies: dep) +dep = dependency('libelf', required: false) +if dep.found() sources += files('bpf_load_elf.c') ext_deps += dep endif