diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-26 11:35:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-26 13:48:21 +0000 |
commit | 4f976b8fa9d2a9c57e3c56b77998a83e8c54f942 (patch) | |
tree | c4d053c22832e97f335cbaa344889ea2e0d1b705 /meta/conf | |
parent | 8117e011476f9491d618d8b9dcc154409d2b83d4 (diff) | |
download | poky-4f976b8fa9d2a9c57e3c56b77998a83e8c54f942.tar.gz |
security-flags: Deal with powerpc build issues
Building powerpc machines with the standard security flags generated numerous
build failures. Use a reduced set of flags for now to avoid linker issues
and other compile failures.
(From OE-Core rev: 4ef8f658874282ead0c46352474fdb03ad1f1038)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 93d635556e..13711b05cb 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc | |||
@@ -2,6 +2,14 @@ SECURITY_CFLAGS ?= "-fstack-protector-all -pie -fpie -D_FORTIFY_SOURCE=2" | |||
2 | SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-all -D_FORTIFY_SOURCE=2" | 2 | SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-all -D_FORTIFY_SOURCE=2" |
3 | SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now" | 3 | SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now" |
4 | 4 | ||
5 | # powerpc does not get on with pie for reasons not looked into as yet | ||
6 | SECURITY_CFLAGS_powerpc = "-fstack-protector-all -D_FORTIFY_SOURCE=2" | ||
7 | # Deal with ppc specific linker failures when using the cflags | ||
8 | SECURITY_CFLAGS_pn-dbus_powerpc = "" | ||
9 | SECURITY_CFLAGS_pn-dbus-ptest_powerpc = "" | ||
10 | SECURITY_CFLAGS_pn-libmatchbox_powerpc = "" | ||
11 | SECURITY_CFLAGS_pn-webkit-gtk_powerpc = "" | ||
12 | |||
5 | SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}" | 13 | SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}" |
6 | SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}" | 14 | SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}" |
7 | # Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned | 15 | # Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned |