From 492d8fbe47cce9f25f362cd48f2617d5aa8b5508 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 17 Sep 1998 00:30:53 +0000 Subject: Makefile.in ($(ARLINK), $(SHLINK)): Don't rely on 'ln -f'. * Makefile.in ($(ARLINK), $(SHLINK)): Don't rely on 'ln -f'. * Makefile.in (install): Don't rely on 'ln -f'. From-SVN: r22456 --- libstdc++/Makefile.in | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'libstdc++/Makefile.in') diff --git a/libstdc++/Makefile.in b/libstdc++/Makefile.in index 84e9a45..3bdb2d5 100644 --- a/libstdc++/Makefile.in +++ b/libstdc++/Makefile.in @@ -89,7 +89,8 @@ $(ARLIB): stdlist $(RANLIB) $(ARLIB) $(ARLINK): - ln -f -s $(ARLIB) $(ARLINK) + -rm -f $(ARLINK) + ln -s $(ARLIB) $(ARLINK) marlink: @$(MAKE) $(MARLINK) "ARLINK=$(MARLINK)" @@ -104,7 +105,8 @@ $(SHARLIB): $(SHLIB) $(RANLIB) $(SHARLIB) $(SHLINK): - ln -f -s $(SHLIB) $(SHLINK) + -rm -f $(SHLINK) + ln -s $(SHLIB) $(SHLINK) mshlink: @$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)" @@ -312,25 +314,29 @@ install: rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ if [ $$FILE = $(SHLINK) ] ; then \ if [ -f $${INSTALLDIR}/$(MSHLINK) ]; then \ - ln -f -s $${RELINSTALLDIR}$(MSHLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $${RELINSTALLDIR}$(MSHLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ else \ - ln -f -s $${RELINSTALLDIR}$(SHLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $${RELINSTALLDIR}$(SHLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ fi; \ elif [ $$FILE = $(ARLINK) ] ; then \ if [ -f $${INSTALLDIR}/$(MARLINK) ]; then \ - ln -f -s $${RELINSTALLDIR}$(MARLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $${RELINSTALLDIR}$(MARLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ else \ - ln -f -s $${RELINSTALLDIR}$(ARLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $${RELINSTALLDIR}$(ARLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ fi; \ elif [ $$FILE = mshlink ]; then \ for FILE in $(MSHLINK) ; do \ rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ - ln -f -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ done; \ elif [ $$FILE = marlink ]; then \ for FILE in $(MARLINK) ; do \ rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ - ln -f -s $(ARLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -s $(ARLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ done; \ elif [ $$FILE = $(SHLIB) ]; then \ $(INSTALL_PROGRAM) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ -- cgit v1.1