diff options
-rw-r--r-- | meta-networking/conf/distro/include/meta_networking_security_flags.inc | 6 | ||||
-rw-r--r-- | meta-networking/conf/layer.conf | 3 |
2 files changed, 9 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 0000000000..06802d66d9 --- /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. | ||
5 | TARGET_CFLAGS_remove_pn-c-ares = "${lcl_maybe_fortify}" | ||
6 | TARGET_CPPFLAGS_append_pn-c-ares = "${lcl_maybe_fortify}" | ||
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" | |||
21 | 21 | ||
22 | # used by waf-samba.bbclass | 22 | # used by waf-samba.bbclass |
23 | WAF_CROSS_ANSWERS_PATH = "${LAYERDIR}/files/waf-cross-answers" | 23 | WAF_CROSS_ANSWERS_PATH = "${LAYERDIR}/files/waf-cross-answers" |
24 | |||
25 | # Override security flags | ||
26 | require conf/distro/include/meta_networking_security_flags.inc | ||