From 34b3d7a4a4b374b0a46808fa492b589426179e0e Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 19 Jul 2018 15:37:02 +0100 Subject: [PATCH] build: simplify logic for default library dependencies EAL is a standard dependency of all libraries, except for those built before it. We can therefore simplify the logic by just checking if EAL has been processed, and make it a standard dependency if so. Signed-off-by: Bruce Richardson --- lib/meson.build | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/meson.build b/lib/meson.build index eb91f100bc..71f35d162e 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -45,12 +45,10 @@ foreach l:libraries # use "deps" for internal DPDK dependencies, and "ext_deps" for # external package/library requirements ext_deps = [] - deps = ['eal'] # eal is standard dependency except for itself - if l == 'kvargs' - deps = [] - endif - if l == 'eal' - deps = ['kvargs'] + deps = [] + # eal is standard dependency once built + if dpdk_conf.has('RTE_LIBRTE_EAL') + deps += ['eal'] endif dir_name = 'librte_' + l -- 2.20.1