diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-07 17:39:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:44 +0100 |
commit | 343cc9646d109eeb7409f7bbfb61002b6fcce126 (patch) | |
tree | 102eb680c130913860863358222fee490a3c5969 /meta/conf/distro/include/uninative-flags.inc | |
parent | dc52b27f4c61cfbadf44765b4c8216eb2871dbc2 (diff) | |
download | poky-343cc9646d109eeb7409f7bbfb61002b6fcce126.tar.gz |
uninative-flags.inc: Build binutils-native as pie
Some distros (ubuntu 16.10, debian-testing) default to gcc configured with
--enable-default-pie (see gcc -v). This breaks e.g. prelink-native on a pie
default system if binutils-native was built on a system which is not pie default
We therefore enable pie unconditionally for native recipes where static libs are
used such as libiberty from binutils, for now, until our minimum distro set is
all default pie.
(From OE-Core rev: 80b450cca746f068dd63e4546fa4c1eef2d86a0d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/include/uninative-flags.inc')
-rw-r--r-- | meta/conf/distro/include/uninative-flags.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/conf/distro/include/uninative-flags.inc b/meta/conf/distro/include/uninative-flags.inc index e9f82c39ea..b6a944ef63 100644 --- a/meta/conf/distro/include/uninative-flags.inc +++ b/meta/conf/distro/include/uninative-flags.inc | |||
@@ -7,3 +7,11 @@ BUILD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0" | |||
7 | # icu configure defaults to CXX11 if no -std= option is passed in CXXFLAGS | 7 | # icu configure defaults to CXX11 if no -std= option is passed in CXXFLAGS |
8 | # therefore pass one | 8 | # therefore pass one |
9 | BUILD_CXXFLAGS_append_pn-icu-native = " -std=c++98" | 9 | BUILD_CXXFLAGS_append_pn-icu-native = " -std=c++98" |
10 | |||
11 | # Some distros (ubuntu 16.10, debian-testing) default to gcc configured with | ||
12 | # --enable-default-pie (see gcc -v). This breaks e.g. prelink-native on a pie | ||
13 | # default system if binutils-native was built on a system which is not pie default | ||
14 | # We therefore enable pie unconditionally for native recipes where static libs are | ||
15 | # used such as libiberty from binutils, for now, until our minimum distro set is | ||
16 | # all default pie. | ||
17 | BUILD_CFLAGS_append_pn-binutils-native = " -pie -fpie" | ||