mk: fix dependencies to optional configs
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 30 Mar 2017 12:32:28 +0000 (14:32 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Mar 2017 13:38:43 +0000 (15:38 +0200)
commit93e32ea3491f277af1caf675c2b0be3708bc00c3
treea660b8e7e4245dbed907a84a039d275950ca397a
parent8788fec1f26930a526dc079cbfbef8c000265605
mk: fix dependencies to optional configs

In rte.lib.mk, the list of libraries passed to the link
command (LDLIBS) is generated from the DEPDIRS-xxx variables.
If a library is not compiled because it is disabled in
configuration, it should not appear in DEPDIRS-xxx.

- librte_port depends on librte_kni only if it is enabled.
- librte_table depends on librte_acl only if it is enabled.

Fixes: feb9f680cd2c ("mk: optimize directory dependencies")

Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/Makefile