[Buildroot] [PATCH/next 2/2] keepalived: enable hardening option

Fabrice Fontaine fontaine.fabrice at gmail.com
Wed Nov 21 21:16:11 UTC 2018


Enable or disable hardening option depending on BR2_TOOLCHAIN_HAS_SSP

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/keepalived/keepalived.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/keepalived/keepalived.mk b/package/keepalived/keepalived.mk
index 584da6bb48..f9049bf391 100644
--- a/package/keepalived/keepalived.mk
+++ b/package/keepalived/keepalived.mk
@@ -9,7 +9,12 @@ KEEPALIVED_SITE = http://www.keepalived.org/software
 KEEPALIVED_DEPENDENCIES = host-pkgconf openssl
 KEEPALIVED_LICENSE = GPL-2.0+
 KEEPALIVED_LICENSE_FILES = COPYING
-KEEPALIVED_CONF_OPTS = --disable-hardening
+
+ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
+KEEPALIVED_CONF_OPTS += --enable-hardening
+else
+KEEPALIVED_CONF_OPTS += --disable-hardening
+endif
 
 ifeq ($(BR2_PACKAGE_JSON_C),y)
 KEEPALIVED_DEPENDENCIES += json-c
-- 
2.17.1



More information about the buildroot mailing list