diff options
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4fcc7dc5a37..c47e8109a94 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 |