summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 95af6d89a9..8855bb1f34 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -206,9 +206,17 @@ do_package_write_ipk[noexec] = "1"
206do_package_write_rpm[noexec] = "1" 206do_package_write_rpm[noexec] = "1"
207do_package_write_deb[noexec] = "1" 207do_package_write_deb[noexec] = "1"
208 208
209BUILDDIRSTASH = "${WORKDIR}/stashed-builddir" 209inherit chrpath
210
211python gcc_stash_builddir_fixrpaths() {
212 # rewrite rpaths, breaking hardlinks as required
213 process_dir("/", d.getVar("BUILDDIRSTASH"), d, break_hardlinks = True)
214}
215
216BUILDDIRSTASH = "${WORKDIR}/stashed-builddir/build"
210do_gcc_stash_builddir[dirs] = "${B}" 217do_gcc_stash_builddir[dirs] = "${B}"
211do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}" 218do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
219do_gcc_stash_builddir[postfuncs] += "gcc_stash_builddir_fixrpaths"
212do_gcc_stash_builddir () { 220do_gcc_stash_builddir () {
213 dest=${BUILDDIRSTASH} 221 dest=${BUILDDIRSTASH}
214 hardlinkdir . $dest 222 hardlinkdir . $dest