summaryrefslogtreecommitdiffstats
path: root/meta-networking/conf/distro/include
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2016-07-18 09:02:48 +0100
committerJoe MacDonald <joe_macdonald@mentor.com>2016-08-05 09:06:49 -0400
commitabf5445c1ae2f4f89fdc77b6194309d2c4588855 (patch)
treeabf73166ca1bbed19c992293ca46329597529f59 /meta-networking/conf/distro/include
parent6204c135e9d69bdf179320b8e292df4ee7afb0aa (diff)
downloadmeta-openembedded-abf5445c1ae2f4f89fdc77b6194309d2c4588855.tar.gz
meta-networking: override SECURITY_CFLAGS for c-ares
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 <adraszik@tycoint.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/conf/distro/include')
-rw-r--r--meta-networking/conf/distro/include/meta_networking_security_flags.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-networking/conf/distro/include/meta_networking_security_flags.inc b/meta-networking/conf/distro/include/meta_networking_security_flags.inc
new file mode 100644
index 000000000..06802d66d
--- /dev/null
+++ b/meta-networking/conf/distro/include/meta_networking_security_flags.inc
@@ -0,0 +1,6 @@
1# configure righteously complains:
2# | configure:3479: using CFLAGS: -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2
3# | configure:3485: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=2
4# | configure:3516: error: Can not continue. Fix errors mentioned immediately above this line.
5TARGET_CFLAGS_remove_pn-c-ares = "${lcl_maybe_fortify}"
6TARGET_CPPFLAGS_append_pn-c-ares = "${lcl_maybe_fortify}"