mirror of
https://git.yoctoproject.org/poky
synced 2026-06-07 15:09:50 +00:00
gcc-cross: Fix header file corruption problems
gcc's makefile can move files, replacing with the contents "timestamp". This corrupts the headers and breaks things like the gcc testsuite. Add in a fix to ensure the headers are not corrupted through their hardlink copies. (From OE-Core rev: 7e75ed5aec86b94fe7fadbed606619f84a2e58e7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -212,6 +212,9 @@ do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
|
||||
do_gcc_stash_builddir () {
|
||||
dest=${BUILDDIRSTASH}
|
||||
hardlinkdir . $dest
|
||||
# Makefile does move-if-change which can end up with 'timestamp' as file contents so break links to those files
|
||||
rm $dest/gcc/include/*.h
|
||||
cp gcc/include/*.h $dest/gcc/include/
|
||||
}
|
||||
addtask do_gcc_stash_builddir after do_compile before do_install
|
||||
SSTATETASKS += "do_gcc_stash_builddir"
|
||||
|
||||
Reference in New Issue
Block a user