From: Kaveh R. Ghazi Date: Sun, 18 Jul 1999 01:23:41 +0000 (+0000) Subject: Makefile.in (stmp-multilib-sub): Make the files extracted from $(LIBGCC1) writable. X-Git-Tag: prereleases/gcc-2.95-test~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a2574589d5bcf61d80f113f96793545ea8714db;p=thirdparty%2Fgcc.git Makefile.in (stmp-multilib-sub): Make the files extracted from $(LIBGCC1) writable. * Makefile.in (stmp-multilib-sub): Make the files extracted from $(LIBGCC1) writable. From-SVN: r28146 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a8c3f53ba07..9676149bcef7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-07-17 Kaveh R. Ghazi + + * 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 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4fcc7dc5a378..c47e8109a943 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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