summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-02 23:43:37 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-02 23:43:37 +0000
commitd90254420bc6dd1d7d71ea5922df2af88b229282 (patch)
tree6901dc00a5b8548c3020a579df20ee4c4726f8ab /sys-devel/gcc/files/3.3.5
parentinitial import from freebsd RELENG_5_3 branch (diff)
downloadgentoo-2-d90254420bc6dd1d7d71ea5922df2af88b229282.tar.gz
gentoo-2-d90254420bc6dd1d7d71ea5922df2af88b229282.tar.bz2
gentoo-2-d90254420bc6dd1d7d71ea5922df2af88b229282.zip
fix gcc-3.3.x cross compile #79487
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-devel/gcc/files/3.3.5')
-rw-r--r--sys-devel/gcc/files/3.3.5/gcc-3.3.5-no-COPYING-cross-compile.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/3.3.5/gcc-3.3.5-no-COPYING-cross-compile.patch b/sys-devel/gcc/files/3.3.5/gcc-3.3.5-no-COPYING-cross-compile.patch
new file mode 100644
index 000000000000..88a6fbd1cb68
--- /dev/null
+++ b/sys-devel/gcc/files/3.3.5/gcc-3.3.5-no-COPYING-cross-compile.patch
@@ -0,0 +1,44 @@
+No real point to this code and it's been dropped in 3.4.x so let's punt it
+in 3.3.x too. Fix cross-compiling which is good.
+
+http://bugs.gentoo.org/show_bug.cgi?id=79487
+
+--- gcc-3.3.5/configure.in
++++ gcc-3.3.5/configure.in
+@@ -902,36 +902,6 @@
+ fi
+ fi
+
+-# Handle ${copy_dirs}
+-set fnord ${copy_dirs}
+-shift
+-while test $# != 0 ; do
+- if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
+- :
+- else
+- echo Copying $1 to $2
+-
+- # Use the install script to create the directory and all required
+- # parent directories.
+- if test -d $2 ; then
+- :
+- else
+- echo >config.temp
+- ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
+- fi
+-
+- # Copy the directory, assuming we have tar.
+- # FIXME: Should we use B in the second tar? Not all systems support it.
+- (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
+-
+- # It is the responsibility of the user to correctly adjust all
+- # symlinks. If somebody can figure out how to handle them correctly
+- # here, feel free to add the code.
+-
+- echo $1 > $2/COPIED
+- fi
+- shift; shift
+-done
+
+ # Work in distributions that contain no compiler tools, like Autoconf.
+ tentative_cc=""