aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-07-28 11:03:59 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-07-28 11:03:59 -0700
commit2516bc12a8e08cc2aa172a7a5d8acd6b0bfdc9de (patch)
treecf317e8b841eb855bb7964edc083bf4927f7d970 /gcc
parent5fd7eed02db18b5acb5563857bc025a58b736f4b (diff)
downloadgcc-2516bc12a8e08cc2aa172a7a5d8acd6b0bfdc9de.zip
gcc-2516bc12a8e08cc2aa172a7a5d8acd6b0bfdc9de.tar.gz
gcc-2516bc12a8e08cc2aa172a7a5d8acd6b0bfdc9de.tar.bz2
(libgcc.a): Do `chmod +w *' between two ar commands.
From-SVN: r5028
Diffstat (limited to 'gcc')
-rw-r--r--gcc/Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 378944f..e269bc4 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -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