(libgcc.a): Do `chmod +w *' between two ar commands.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 28 Jul 1993 18:03:59 +0000 (11:03 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 28 Jul 1993 18:03:59 +0000 (11:03 -0700)
From-SVN: r5028

gcc/Makefile.in

index 378944f59c5919c84d57cc98091d28cc1f00b259..e269bc431618364a27ed6569d35d646bebd4ea26 100644 (file)
@@ -706,6 +706,11 @@ libgcc.a: $(LIBGCC1) $(LIBGCC2)
        then (cd tmpcopy; $(AR) 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) x ../$(LIBGCC2))
        (cd tmpcopy; $(AR) $(AR_FLAGS) ../tmplibgcc.a *.o)
        rm -rf tmpcopy