build_cross_tools_gcc4: Clear "missing" scripts instead of touching files.
This just stops the errors from occuring rather than trying to rebuild the files at all. This is much cleaner, and solves a few cases that the other method did not.
This commit is contained in:
@@ -135,21 +135,12 @@ if [ -z "$gccVersion" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# touch all info files in order to avoid the dependency on makeinfo
|
# clear out the "missing" scripts so that they don't cause errors on tools
|
||||||
# (which apparently doesn't work reliably on all the different host
|
# that are not installed, as we will have committed any files generated by
|
||||||
# configurations and changes files which in turn appear as local changes
|
# them to the buildtools repo already.
|
||||||
# to the VCS).
|
echo "#!/bin/sh" >"$binutilsSourceDir"/missing
|
||||||
find "$binutilsSourceDir" "$gccSourceDir" -name \*.info -print0 | xargs -0 touch
|
echo "#!/bin/sh" >"$gccSourceDir"/missing
|
||||||
|
echo "#!/bin/sh" >"$gccSourceDir"/isl/missing
|
||||||
# touch all configure files in order to avoid them being auto-rebuilt,
|
|
||||||
# as this often fails because the host system does not have the exact
|
|
||||||
# version of autofools that GCC wants
|
|
||||||
find "$binutilsSourceDir" "$gccSourceDir" \( -name configure -o -name \*.in \) -print0 | xargs -0 touch
|
|
||||||
|
|
||||||
# export some variables to stop the subsequent configure/make from invoking
|
|
||||||
# tools which we don't require the user to have installed (or do not require
|
|
||||||
# a specific version of, which autofools does.)
|
|
||||||
export ACLOCAL=:
|
|
||||||
|
|
||||||
# create the object and installation directories for the cross compilation tools
|
# create the object and installation directories for the cross compilation tools
|
||||||
objDir="${installDir}-build"
|
objDir="${installDir}-build"
|
||||||
|
|||||||
Reference in New Issue
Block a user