From 9ebaf4e7c765d782826ba9f88a4095f5d883d9da Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 3 May 2008 08:18:52 +0000 Subject: New. Keep this outdated stuff building on modern hosts. --- .../patches/gcc-core-4.0.3-rtems4.7-20080503.diff | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 contrib/crossrpms/patches/gcc-core-4.0.3-rtems4.7-20080503.diff 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); \ -- cgit v1.2.3