Makefile.in (stmp-multilib-sub): Make the files extracted from $(LIBGCC1) writable.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 18 Jul 1999 01:19:40 +0000 (01:19 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 18 Jul 1999 01:19:40 +0000 (19:19 -0600)
        * Makefile.in (stmp-multilib-sub): Make the files extracted
        from $(LIBGCC1) writable.

From-SVN: r28145

gcc/ChangeLog
gcc/Makefile.in

index 79ce25650823decea360c905fe07357665329ce2..91c2c8989820cb056f84d01ff5131a8bcb0e7395 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+        * Makefile.in (stmp-multilib-sub): Make the files extracted
+        from $(LIBGCC1) writable.
+
 Sat Jul 17 14:25:46 1999  Nick Clifton  <nickc@cygnus.com>
 
        * config/arm/aout.h: Reformat for improved readability.
index e5ceefe05a29ca50ee8d807b3fd608ffac9959a5..302648ab68f351258034c3da0aa40e6b55b98a61 100644 (file)
@@ -1245,6 +1245,11 @@ stmp-multilib-sub:
        then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
        else true; \
        fi
+# Some versions of ar (specifically the one in RISC/os 5.x), create an
+# unwritable table of contents file, and then print an error message when
+# the second ar command tries to overwrite this file.  To avoid the error
+# message from ar, we make sure all files are writable.
+       -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
        (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2))
        (cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext))
        rm -rf libgcc2.a tmpcopy