diff options
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 10 |
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" | |||
206 | do_package_write_rpm[noexec] = "1" | 206 | do_package_write_rpm[noexec] = "1" |
207 | do_package_write_deb[noexec] = "1" | 207 | do_package_write_deb[noexec] = "1" |
208 | 208 | ||
209 | BUILDDIRSTASH = "${WORKDIR}/stashed-builddir" | 209 | inherit chrpath |
210 | |||
211 | python gcc_stash_builddir_fixrpaths() { | ||
212 | # rewrite rpaths, breaking hardlinks as required | ||
213 | process_dir("/", d.getVar("BUILDDIRSTASH"), d, break_hardlinks = True) | ||
214 | } | ||
215 | |||
216 | BUILDDIRSTASH = "${WORKDIR}/stashed-builddir/build" | ||
210 | do_gcc_stash_builddir[dirs] = "${B}" | 217 | do_gcc_stash_builddir[dirs] = "${B}" |
211 | do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}" | 218 | do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}" |
219 | do_gcc_stash_builddir[postfuncs] += "gcc_stash_builddir_fixrpaths" | ||
212 | do_gcc_stash_builddir () { | 220 | do_gcc_stash_builddir () { |
213 | dest=${BUILDDIRSTASH} | 221 | dest=${BUILDDIRSTASH} |
214 | hardlinkdir . $dest | 222 | hardlinkdir . $dest |