diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-02-15 16:57:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-16 09:04:22 +0000 |
commit | ef5b8b4656091e3de07d6944b532e2c037a1cfec (patch) | |
tree | 528acfa63617585dc978449aa330a22aba0d376b /meta/lib/oeqa/runtime/systemd.py | |
parent | 138778501367d3cd0036fc31afbbedce0016f478 (diff) | |
download | poky-ef5b8b4656091e3de07d6944b532e2c037a1cfec.tar.gz |
security_flags: Add SECURITY_CFLAGS to TARGET_CC_ARCH for binutils
libtool decides to
filter out -fstack-protector-strong on its own and its documented here
https://www.gnu.org/software/libtool/manual/html_node/Stripped-link-flags.html
this causes linking errors when linking libbfd.so since objects (.o) are
compiled using -fstack-protector-strong so they are expecting to link
with libssp but the option goes missing in linker flags.
With this patch the security flags are hoisted upto CC itself and
libtool thankfully does not touch CC.
Adding to CC also means that we can now remove it from LDFLAGS since
when gcc driver is used to do linking then we have LD = CC and this
option makes to linker cmdline
Since CC is used without CFLAGS in configure tests, some tests fail
complaining that -Olevel is not used while using _FORTIFY_SOURCE
therefore added SELECTED_OPTIMIZATION to TARGET_CC_ARCH as well
(From OE-Core rev: 9349f28531619a4ff15c382dacc460d61e3ec7af)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/systemd.py')
0 files changed, 0 insertions, 0 deletions