From abf5445c1ae2f4f89fdc77b6194309d2c4588855 Mon Sep 17 00:00:00 2001 From: André Draszik Date: Mon, 18 Jul 2016 09:02:48 +0100 Subject: meta-networking: override SECURITY_CFLAGS for c-ares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit c-ares doesn't build if the distro has enabled usage of the security_flags.inc file as it is picky about what is placed into CPPFLAGS and CFLAGS. It complains and errors out if any preprocessor options appear in CFLAGS. Fix this by providing an additional include file that is require'd from conf/layer.conf which for c-ares moves the defines added by security_flags.inc from CFLAGS to CPPFLAGS. Signed-off-by: André Draszik Signed-off-by: Martin Jansa Signed-off-by: Joe MacDonald --- meta-networking/conf/layer.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-networking/conf/layer.conf') diff --git a/meta-networking/conf/layer.conf b/meta-networking/conf/layer.conf index 5fd636a87e..c09ba4a478 100644 --- a/meta-networking/conf/layer.conf +++ b/meta-networking/conf/layer.conf @@ -21,3 +21,6 @@ LICENSE_PATH += "${LAYERDIR}/licenses" # used by waf-samba.bbclass WAF_CROSS_ANSWERS_PATH = "${LAYERDIR}/files/waf-cross-answers" + +# Override security flags +require conf/distro/include/meta_networking_security_flags.inc -- cgit v1.2.3-54-g00ecf