Patch for crosstool.sh in crosstool-0.37
Leon Woestenberg
leonw@mailcan.com
Wed Jul 20 08:26:00 GMT 2005
Hello,
On Tue, 2005-07-19 at 03:21, Khem Raj wrote:
> Hi
>
> If the build failed and I restarted the build then it will fail at
> creating links and either I have delete the links or do a complete
> rebuild. To avoid that I have applied this patch where I force the links
> to be creared, to crosstools.sh and it seems to fix the problem.
>
> --- crosstool.sh.orig 2005-07-18 18:17:19.000000000 -0700
> +++ crosstool.sh 2005-07-18 18:17:45.000000000 -0700
> @@ -359,7 +359,7 @@
> # instead of the location its configure script claims it searches
> (gcc_cv_as), grr
> mkdir -p $CORE_PREFIX/$TARGET/bin
> for tool in ar as ld strip; do
> - ln -s $PREFIX/bin/$TARGET-$tool $CORE_PREFIX/$TARGET/bin/$tool
> + ln -sf $PREFIX/bin/$TARGET-$tool $CORE_PREFIX/$TARGET/bin/$tool
>
For maximum safety when relinking, use the -n option as well.
Otherwise you end up with a link *inside* a referenced (earlier linked)
directory. (Instead of replacing the link-to-directory).
"ln -snf" is always a safe bet when (re)creating a symbolic link.
Regards,
Leon.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list