This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix problem with stage*-start when LN_S is "cp"


Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>

	* Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
	that works if LN_S = cp.

*** Makefile.in	2001/12/10 12:04:20	1.804
--- Makefile.in	2001/12/11 01:53:34
*************** stage1-start:
*** 3137,3145 ****
  	-mv intl/*$(objext) stage1/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage1 ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage1 ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage1 ; else true ; fi
  	-rm -f stage1/libgcc.a
  	-cp libgcc.a stage1
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
--- 3137,3145 ----
  	-mv intl/*$(objext) stage1/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then (cd stage1 && $(LN_S) ../as$(exeext) .) ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../ld$(exeext) .) ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
  	-rm -f stage1/libgcc.a
  	-cp libgcc.a stage1
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
*************** stage2-start:
*** 3162,3170 ****
  	-mv intl/*$(objext) stage2/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage2 ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage2 ; else true ; fi
! 	-if [ -f collect-ld ] ; then $(LN_S) ../collect-ld$(exeext) stage2 ; else true ; fi
  	-rm -f stage2/libgcc.a
  	-cp libgcc.a stage2
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
--- 3162,3170 ----
  	-mv intl/*$(objext) stage2/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then (cd stage2 && $(LN_S) ../as$(exeext) .) ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../ld$(exeext) .) ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
  	-rm -f stage2/libgcc.a
  	-cp libgcc.a stage2
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
*************** stage3-start:
*** 3187,3195 ****
  	-mv intl/*$(objext) stage3/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage3 ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage3 ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage3 ; else true ; fi
  	-rm -f stage3/libgcc.a
  	-cp libgcc.a stage3
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
--- 3187,3195 ----
  	-mv intl/*$(objext) stage3/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then (cd stage3 && $(LN_S) ../as$(exeext) .) ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../ld$(exeext) .) ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
  	-rm -f stage3/libgcc.a
  	-cp libgcc.a stage3
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
*************** stage4-start:
*** 3212,3220 ****
  	-mv intl/*$(objext) stage4/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then $(LN_S) ../as$(exeext) stage4 ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then $(LN_S) ../ld$(exeext) stage4 ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then $(LN_S) ../collect-ld$(exeext) stage4 ; else true ; fi
  	-rm -f stage4/libgcc.a
  	-cp libgcc.a stage4
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \
--- 3212,3220 ----
  	-mv intl/*$(objext) stage4/intl
  # Copy as/ld if they exist to stage dir, so that running xgcc from the stage
  # dir will work properly.
! 	-if [ -f as$(exeext) ] ; then (cd stage4 && $(LN_S) ../as$(exeext) .) ; else true ; fi
! 	-if [ -f ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../ld$(exeext) .) ; else true ; fi
! 	-if [ -f collect-ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
  	-rm -f stage4/libgcc.a
  	-cp libgcc.a stage4
  	-if $(RANLIB_TEST_FOR_TARGET) ; then \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]