keepalived: fix libnl optional dependency

List libnl as a dependency when it is enabled. Make sure that
libnfnetlink is actually enabled when listing it as a dependency.

Cc: Ilias Apalodimas <apalos@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Baruch Siach 2017-03-20 22:52:41 +02:00 committed by Thomas Petazzoni
parent c72bc729fb
commit e64f876bab

View File

@ -13,8 +13,8 @@ KEEPALIVED_CONF_OPTS += --disable-dbus
KEEPALIVED_PATCH = https://github.com/acassen/keepalived/commit/5d98b7b69fcbba84fa69e5b5e9a019bfbcb76e8b.patch
ifeq ($(BR2_PACKAGE_LIBNL),y)
KEEPALIVED_DEPENDENCIES += libnfnetlink
ifeq ($(BR2_PACKAGE_LIBNL)$(BR2_PACKAGE_LIBNFNETLINK),yy)
KEEPALIVED_DEPENDENCIES += libnl libnfnetlink
endif
ifeq ($(BR2_PACKAGE_IPSET),y)