diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-07-07 14:08:33 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-20 10:28:46 +0100 |
commit | a98a8180863ff45b477a1f8439ebcec21151d282 (patch) | |
tree | be5b671b6cbcaf5f61dcbd172c7ad3b5c6ed3004 /meta | |
parent | 648fd334da992d3d21a7cb13afa0e6c8e2152c7c (diff) | |
download | poky-a98a8180863ff45b477a1f8439ebcec21151d282.tar.gz |
gcc-cross: default linker hash style to sysv
We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to
this in the toolchain, while convenient, actually hides bugs, as a failure to
obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we
poison the sysroot -- rather than relying on the default, notice right away if
somoeone isn't obeying the needed flags.
This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure,
which is what's often seen with external toolchains. This brings us all on the
same page, and makes sure a failure to obey LDFLAGS is seen early.
This is limited to cross, to retain ease of use for SDKs.
(From OE-Core rev: fa436aeb3242cbfdbbe16d448d45bce8eb5b74fd)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index f47936061d..c0b8751ede 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
@@ -13,6 +13,11 @@ PN = "gcc-cross-${TARGET_ARCH}" | |||
13 | 13 | ||
14 | require gcc-configure-common.inc | 14 | require gcc-configure-common.inc |
15 | 15 | ||
16 | # While we want the 'gnu' hash style, we explicitly set it to sysv here to | ||
17 | # ensure that any recipe which doesn't obey our LDFLAGS (which also set it to | ||
18 | # gnu) will hit a QA failure. | ||
19 | LINKER_HASH_STYLE ?= "sysv" | ||
20 | |||
16 | EXTRA_OECONF += "--enable-poison-system-directories" | 21 | EXTRA_OECONF += "--enable-poison-system-directories" |
17 | EXTRA_OECONF_append_sh4 = " \ | 22 | EXTRA_OECONF_append_sh4 = " \ |
18 | --with-multilib-list= \ | 23 | --with-multilib-list= \ |