Fix parallel make install

Diego Novillo dnovillo@google.com
Tue Dec 2 15:53:00 GMT 2008


This fixes a bootstrap failure on trunk that may happen when make
install in libgomp and fortran interleave just the right way.
The fortran install was removing the finclude directory from
under libgomp's feet.

OK for trunk?


Diego.


2008-12-02  Jakub Jelinek  <jakub@redhat.com>
	    Diego Novillo  <dnovillo@google.com>

	* Make-lang.in (install-finclude-dir): Use mkinstalldirs
	and don't remove the finclude directory beforehand.

Index: fortran/Make-lang.in
===================================================================
--- fortran/Make-lang.in	(revision 142360)
+++ fortran/Make-lang.in	(working copy)
@@ -211,8 +211,7 @@ doc/gfc-internals.pdf: $(GFC_INTERNALS_T
 
 # Create or recreate the gfortran private include file directory.
 install-finclude-dir: installdirs
-	-rm -rf $(DESTDIR)$(libsubdir)/finclude
-	mkdir $(DESTDIR)$(libsubdir)/finclude
+	$(mkinstalldirs) $(DESTDIR)$(libsubdir)/finclude
 	-chmod a+rx $(DESTDIR)$(libsubdir)/finclude
 #

 # Install hooks:



More information about the Fortran mailing list