patches/binutils/2.20/230-libiberty-pic.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Nov 30 21:34:50 2009 +0100 (2009-11-30)
changeset 1691 e0191807e79a
parent 1614 3f76cdbceb6e
permissions -rw-r--r--
scripts: protect against partially extracted source

In case of failure (eg. user hitting Ctrl-C), avoid extracting over
partially extracted source. Will help once we have git available.
     1 --- binutils/libiberty/Makefile.in.mps	2004-05-13 15:53:17.000000000 +0200
     2 +++ binutils/libiberty/Makefile.in	2004-05-13 15:52:53.000000000 +0200
     3 @@ -224,6 +224,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA
     4  	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
     5  	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
     6  	  $(RANLIB) $(TARGETLIB); \
     7 +	  cp $(TARGETLIB) ../ ; \
     8  	  cd ..; \
     9  	else true; fi
    10