mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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>
This commit is contained in:
@@ -2,6 +2,14 @@ SECURITY_CFLAGS ?= "-fstack-protector-all -pie -fpie -D_FORTIFY_SOURCE=2"
|
||||
SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-all -D_FORTIFY_SOURCE=2"
|
||||
SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now"
|
||||
|
||||
# powerpc does not get on with pie for reasons not looked into as yet
|
||||
SECURITY_CFLAGS_powerpc = "-fstack-protector-all -D_FORTIFY_SOURCE=2"
|
||||
# Deal with ppc specific linker failures when using the cflags
|
||||
SECURITY_CFLAGS_pn-dbus_powerpc = ""
|
||||
SECURITY_CFLAGS_pn-dbus-ptest_powerpc = ""
|
||||
SECURITY_CFLAGS_pn-libmatchbox_powerpc = ""
|
||||
SECURITY_CFLAGS_pn-webkit-gtk_powerpc = ""
|
||||
|
||||
SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
# Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned
|
||||
|
||||
Reference in New Issue
Block a user