summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-05-03 08:18:52 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-05-03 08:18:52 +0000
commit9ebaf4e7c765d782826ba9f88a4095f5d883d9da (patch)
tree981a7d683662d6efb188fd563d32126e78a00757
parentRegenerate. (diff)
downloadrtems-9ebaf4e7c765d782826ba9f88a4095f5d883d9da.tar.bz2
New. Keep this outdated stuff building on modern hosts.
-rw-r--r--contrib/crossrpms/patches/gcc-core-4.0.3-rtems4.7-20080503.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/crossrpms/patches/gcc-core-4.0.3-rtems4.7-20080503.diff b/contrib/crossrpms/patches/gcc-core-4.0.3-rtems4.7-20080503.diff
new file mode 100644
index 0000000000..39fdfd0361
--- /dev/null
+++ b/contrib/crossrpms/patches/gcc-core-4.0.3-rtems4.7-20080503.diff
@@ -0,0 +1,27 @@
+diff -Naur gcc-4.0.3.orig/gcc/collect2.c gcc-4.0.3/gcc/collect2.c
+--- gcc-4.0.3.orig/gcc/collect2.c 2005-06-06 21:21:03.000000000 +0200
++++ gcc-4.0.3/gcc/collect2.c 2008-05-03 08:01:42.000000000 +0200
+@@ -1577,7 +1577,7 @@
+ if (redir)
+ {
+ /* Open response file. */
+- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
++ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR | S_IRUSR);
+
+ /* Duplicate the stdout and stderr file handles
+ so they can be restored later. */
+diff -Naur gcc-4.0.3.orig/gcc/Makefile.in gcc-4.0.3/gcc/Makefile.in
+--- gcc-4.0.3.orig/gcc/Makefile.in 2005-09-09 23:05:53.000000000 +0200
++++ gcc-4.0.3/gcc/Makefile.in 2008-05-03 07:52:44.000000000 +0200
+@@ -3275,9 +3275,9 @@
+ install-driver: installdirs xgcc$(exeext)
+ -rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
+ -$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
+- -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)
++ -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
+ -( cd $(DESTDIR)$(bindir) && \
+- $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) )
++ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
+ -if [ -f gcc-cross$(exeext) ] ; then \
+ if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
+ rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \