9b0d3b1243
Disable track-process to avoid the following build failure with
gcc < 4.9 raised since bump to version 2.2.7 in commit
79f631000f
as suggested by upstream in
https://github.com/acassen/keepalived/issues/2094:
In file included from ../../lib/rbtree.h:24:0,
from ../../lib/rbtree_ka.h:26,
from ../../lib/scheduler.h:40,
from ../../lib/notify.h:31,
from ../../keepalived/include/vrrp.h:41,
from ../../keepalived/include/track_process.h:31,
from track_process.c:50:
../../lib/rbtree_types.h:31:25: error: initializer element is not constant
#define RB_ROOT (struct rb_root) { NULL, }
^
Fixes:
- http://autobuild.buildroot.org/results/2132570fb0407abc0e70146d771471e13ef10237
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# keepalived
|
|
#
|
|
################################################################################
|
|
|
|
KEEPALIVED_VERSION = 2.2.7
|
|
KEEPALIVED_SITE = http://www.keepalived.org/software
|
|
KEEPALIVED_DEPENDENCIES = host-pkgconf openssl
|
|
KEEPALIVED_LICENSE = GPL-2.0+
|
|
KEEPALIVED_LICENSE_FILES = COPYING
|
|
KEEPALIVED_CPE_ID_VENDOR = keepalived
|
|
KEEPALIVED_CONF_OPTS = --disable-hardening
|
|
# We're patching configure.ac
|
|
KEEPALIVED_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
|
KEEPALIVED_DEPENDENCIES += json-c
|
|
KEEPALIVED_CONF_OPTS += --enable-json
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-json
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
KEEPALIVED_DEPENDENCIES += libglib2
|
|
KEEPALIVED_CONF_OPTS += --enable-dbus
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-dbus
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL)$(BR2_PACKAGE_LIBNFNETLINK),yy)
|
|
KEEPALIVED_DEPENDENCIES += libnl libnfnetlink
|
|
KEEPALIVED_CONF_OPTS += --enable-libnl
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-libnl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPTABLES),y)
|
|
KEEPALIVED_DEPENDENCIES += iptables
|
|
KEEPALIVED_CONF_OPTS += --enable-iptables
|
|
# ipset support only makes sense when iptables support is enabled.
|
|
ifeq ($(BR2_PACKAGE_IPSET),y)
|
|
KEEPALIVED_DEPENDENCIES += ipset
|
|
KEEPALIVED_CONF_OPTS += --enable-libipset
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-libipset
|
|
endif
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-iptables
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFTNL),y)
|
|
KEEPALIVED_DEPENDENCIES += libnftnl
|
|
KEEPALIVED_CONF_OPTS += --enable-nftables
|
|
else
|
|
KEEPALIVED_CONF_OPTS += --disable-nftables
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_9),)
|
|
KEEPALIVED_CONF_OPTS += --disable-track-process
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|