X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Fmeson.build;h=8a79878ff31f44eecb98383e06248fc4751cf978;hb=b60fd5f8b1ce8f0a2cf6ceb1e690c07977660bd0;hp=de9de0091af2c45182c2c42f0357f3047bd3ed82;hpb=a93ff62a8938fd74711a6a96044d2dde78ce799b;p=dpdk.git diff --git a/lib/librte_bpf/meson.build b/lib/librte_bpf/meson.build index de9de0091a..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' +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