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

From-SVN: r28146

gcc/ChangeLog
gcc/Makefile.in

index 6a8c3f53ba0702c319d44fd08668128099a51a19..9676149bcef7bb35a6bc814555056e6d90d444fd 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.
+
 Fri Jul 16 01:39:57 1999  Jeffrey A Law  (law@cygnus.com)
 
        * m68k.c (output_function_prologue): Fix computation of save mask
index 4fcc7dc5a378e49214b12e7159bc7903eff644ce..c47e8109a943d2e3c07c9ed0545822d0a16e9be8 100644 (file)
@@ -1246,6 +1246,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