This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
$(LN) fails in install-driver
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Nov 2002 21:43:08 +0100
- Subject: $(LN) fails in install-driver
This fixes an error from ln when $(bindir)/$(target_alias)-gcc-$(version)
already exists. Committed as obvious.
Andreas.
2002-11-24 Andreas Schwab <schwab@suse.de>
* Makefile.in (install-driver): Remove versioned link before
trying to create it.
--- gcc/Makefile.in.~1.957.~ 2002-11-21 10:11:59.000000000 +0100
+++ gcc/Makefile.in 2002-11-24 21:37:54.000000000 +0100
@@ -2839,6 +2839,7 @@ install-driver: installdirs xgcc$(exeext
-if [ -f gcc-cross$(exeext) ] ; then \
rm -f $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
$(INSTALL_PROGRAM) gcc-cross$(exeext) $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
+ rm -f $(bindir)/$(target_alias)-gcc-$(version); \
$(LN) $(bindir)/$(GCC_CROSS_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-$(version) ; \
if [ -d $(gcc_tooldir)/bin/. ] ; then \
rm -f $(gcc_tooldir)/bin/gcc$(exeext); \
@@ -2847,6 +2848,7 @@ install-driver: installdirs xgcc$(exeext
else \
rm -f $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
$(INSTALL_PROGRAM) xgcc$(exeext) $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
+ rm -f $(bindir)/$(target_alias)-gcc-$(version); \
$(LN) $(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-$(version) ; \
rm -f $(bindir)/$(target_alias)-gcc-tmp$(exeext); \
$(LN) $(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-tmp$(exeext); \
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."