2021-06-03 18:55 (UTC+0200), David Marchand: [...] > diff --git a/config/meson.build b/config/meson.build > index 017bb2efbb..c6985139b4 100644 > --- a/config/meson.build > +++ b/config/meson.build > @@ -172,6 +172,13 @@ if libexecinfo.found() and cc.has_header('execinfo.h') > dpdk_extra_ldflags += '-lexecinfo' > endif > > +libarchive = dependency('libarchive', required: false, method: 'pkg-config') > +if libarchive.found() > + dpdk_conf.set('RTE_HAS_LIBARCHIVE', 1) > + add_project_link_arguments('-larchive', language: 'c') > + dpdk_extra_ldflags += '-larchive' > +endif > +
Suggestion: diff --git a/config/meson.build b/config/meson.build index c6985139b4..c3668798c1 100644 --- a/config/meson.build +++ b/config/meson.build @@ -175,7 +175,6 @@ endif libarchive = dependency('libarchive', required: false, method: 'pkg-config') if libarchive.found() dpdk_conf.set('RTE_HAS_LIBARCHIVE', 1) - add_project_link_arguments('-larchive', language: 'c') dpdk_extra_ldflags += '-larchive' endif diff --git a/lib/eal/meson.build b/lib/eal/meson.build index 1722924f67..5a018d97d6 100644 --- a/lib/eal/meson.build +++ b/lib/eal/meson.build @@ -16,6 +16,7 @@ subdir(exec_env) subdir(arch_subdir) deps += ['kvargs'] +ext_deps += libarchive if not is_windows deps += ['telemetry'] endif