path: root/meta/recipes-devtools/gcc/
diff options
authorRichard Purdie <>2012-01-19 19:22:44 +0000
committerRichard Purdie <>2012-01-23 08:58:21 +0000
commit2c4569801a710f34a695b8d2a0ee7fc127fb34e4 (patch)
tree56589377837032065da274ed0bf00fbd0119e60b /meta/recipes-devtools/gcc/
parentac162df288f6d8f68c1764fad0ab2d33b9cee281 (diff)
gcc: Ensure that the shared source directory shared the same sstate hashes
The fetch/unpack/patch/headerfix tasks are shared and hence their sstate hashes should also match. Sadly this is not the case since: a) gcc-runtime applies an additional patch b) The do_headerfix task was missing from libgcc c) The do_headerfix task is a shell task and hence depends on all exported variables which can vary between cross and target recipes. To fix this, the patch moves the patch to the common code, adds the headerfix task to a common include file and disabled shell dependencies on the do_headerfix task since its clear in this case we don't need thsoe dependencies since we just call sed. With this patch applied, all these recipes now share common sstate checksums. Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/recipes-devtools/gcc/')
1 files changed, 0 insertions, 15 deletions
diff --git a/meta/recipes-devtools/gcc/ b/meta/recipes-devtools/gcc/
index d0149801db..c4b6ac1111 100644
--- a/meta/recipes-devtools/gcc/
+++ b/meta/recipes-devtools/gcc/
@@ -62,21 +62,6 @@ SYSTEMHEADERS = "${target_includedir}"
SYSTEMLIBS = "${target_base_libdir}/"
SYSTEMLIBS1 = "${target_libdir}/"
-do_headerfix () {
- # Change the default dynamic linker path, in case $base_liddir is non-standard
- # (e.g. in multilib or sdk cases)
- #
- # We want something like the following:
- # #define GLIBC_DYNAMIC_LINKER64 "/lib64/"
- # becomes
- #
- sed -i ${S}/gcc/config/*/linux*.h -e \
- 's#\(GLIBC_DYNAMIC_LINKER[^ ]*\) \( *"/lib.*\)/\(.*\)#\1 SYSTEMLIBS_DIR "\3#'
-addtask headerfix after do_unpack before do_patch
do_configure_prepend () {
# teach gcc to find correct target includedir when checking libc ssp support
mkdir -p ${B}/gcc