diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-09 18:51:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-11 19:08:02 +0100 |
commit | 8f8facbed42afb186a92f314bf2f04c5858f0c3e (patch) | |
tree | 1ecfe93fab63b08dc3e40124b62b4ccef0bfb649 /meta/recipes-devtools/gcc/gcc-configure-common.inc | |
parent | 6697ce28851121fa570b93949b82a36c322e4014 (diff) | |
download | poky-8f8facbed42afb186a92f314bf2f04c5858f0c3e.tar.gz |
gcc: Various fixups to ensure consistent gcc builds
We ensure that:
* the shared work directory contains PR and ensure PR values are consistent across gcc builds
* the regexp to handle library directories is in a specific task and run once
This avoids breakage that was seen in incremental builds after commit
be1f70d68b6b75772ebab8bdff683ddd7c42b0cd where the interpretor could
become corrupted. This was due to the sed expression corrupting
the source directory.
(From OE-Core rev: 970af6b09e1d69041b0d82fa56ace19543405eb1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index 869d1b6d60..2ddc3d7c9f 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc | |||
@@ -61,9 +61,9 @@ SYSTEMHEADERS = "${target_includedir}" | |||
61 | SYSTEMLIBS = "${target_base_libdir}/" | 61 | SYSTEMLIBS = "${target_base_libdir}/" |
62 | SYSTEMLIBS1 = "${target_libdir}/" | 62 | SYSTEMLIBS1 = "${target_libdir}/" |
63 | 63 | ||
64 | do_configure_prepend () { | 64 | do_headerfix () { |
65 | # Change the default dynamic linker path, only useful for SDK, other's value | 65 | # Change the default dynamic linker path, in case $base_liddir is non-standard |
66 | # are not changed according to the SYSTEMLIBS_DIR | 66 | # (e.g. in multilib or sdk cases) |
67 | # | 67 | # |
68 | # We want something like the following: | 68 | # We want something like the following: |
69 | # #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" | 69 | # #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" |
@@ -72,7 +72,11 @@ do_configure_prepend () { | |||
72 | # | 72 | # |
73 | sed -i ${S}/gcc/config/*/linux*.h -e \ | 73 | sed -i ${S}/gcc/config/*/linux*.h -e \ |
74 | 's#\(GLIBC_DYNAMIC_LINKER[^ ]*\) \( *"/lib.*\)/\(.*\)#\1 SYSTEMLIBS_DIR "\3#' | 74 | 's#\(GLIBC_DYNAMIC_LINKER[^ ]*\) \( *"/lib.*\)/\(.*\)#\1 SYSTEMLIBS_DIR "\3#' |
75 | } | ||
75 | 76 | ||
77 | addtask headerfix after do_unpack before do_patch | ||
78 | |||
79 | do_configure_prepend () { | ||
76 | # teach gcc to find correct target includedir when checking libc ssp support | 80 | # teach gcc to find correct target includedir when checking libc ssp support |
77 | mkdir -p ${B}/gcc | 81 | mkdir -p ${B}/gcc |
78 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | 82 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe |