Author: matthew Date: 2011-10-30 02:26:00 -0600 (Sun, 30 Oct 2011) New Revision: 2326
Added: trunk/gcc/gcc-4.6.2-cross_compile-1.patch trunk/gcc/gcc-4.6.2-startfiles_fix-1.patch Log: Add patches for latest upstream version of GCC. Added: trunk/gcc/gcc-4.6.2-cross_compile-1.patch =================================================================== --- trunk/gcc/gcc-4.6.2-cross_compile-1.patch (rev 0) +++ trunk/gcc/gcc-4.6.2-cross_compile-1.patch 2011-10-30 08:26:00 UTC (rev 2326) @@ -0,0 +1,49 @@ +Submitted By: Matt Burgess <matthew_at_linuxfromscratch_dot_org> +Date: 2011-03-30 +Initial Package Version: 4.6.0 +Upstream Status: Submitted Upstream +Origin: http://gcc.gnu.org/PR47836 +Description: Allows --disable-target-libiberty and + --disable-target-zlib to be passed to configure as they + don't build correctly in cross-compiled environments. + +diff -Naur gcc-4.6.0.orig/configure gcc-4.6.0/configure +--- gcc-4.6.0.orig/configure 2011-03-16 18:27:36.000000000 +0000 ++++ gcc-4.6.0/configure 2011-03-30 19:50:41.000000000 +0000 +@@ -2801,6 +2801,16 @@ + # Noconfigdirs are removed loudly. + noconfigdirs="" + ++# Make sure we don't let target-libiberty be added if we didn't want it. ++if test x$with_target_libiberty = xno ; then ++ noconfigdirs="$noconfigdirs target-libiberty" ++fi ++ ++# Make sure we don't let target-zlib be added if we didn't want it. ++if test x$with_target_zlib = xno ; then ++ noconfigdirs="$noconfigdirs target-zlib" ++fi ++ + use_gnu_ld= + # Make sure we don't let GNU ld be added if we didn't want it. + if test x$with_gnu_ld = xno ; then +diff -Naur gcc-4.6.0.orig/configure.ac gcc-4.6.0/configure.ac +--- gcc-4.6.0.orig/configure.ac 2011-03-16 18:27:36.000000000 +0000 ++++ gcc-4.6.0/configure.ac 2011-03-30 19:50:41.000000000 +0000 +@@ -262,6 +262,16 @@ + # Noconfigdirs are removed loudly. + noconfigdirs="" + ++# Make sure we don't let target-libiberty be added if we didn't want it. ++if test x$with_target_libiberty = xno ; then ++ noconfigdirs="$noconfigdirs target-libiberty" ++fi ++ ++# Make sure we don't let target-zlib be added if we didn't want it. ++if test x$with_target_zlib = xno ; then ++ noconfigdirs="$noconfigdirs target-zlib" ++fi ++ + use_gnu_ld= + # Make sure we don't let GNU ld be added if we didn't want it. + if test x$with_gnu_ld = xno ; then Added: trunk/gcc/gcc-4.6.2-startfiles_fix-1.patch =================================================================== --- trunk/gcc/gcc-4.6.2-startfiles_fix-1.patch (rev 0) +++ trunk/gcc/gcc-4.6.2-startfiles_fix-1.patch 2011-10-30 08:26:00 UTC (rev 2326) @@ -0,0 +1,33 @@ +Submitted By: Jeremy Huntwork (jhuntwork AT linuxfromscratch DOT org) +Date: 2008-12-05 +Initial Package Version: 4.3.2 +Upstream Status: See below. +Origin: DIY Linux, See below. +Description: Original patch follows: + +# DIY Linux Patch +Date: 2008-09-09 +Author: Refer Origin. +Origin: Partial revert of http://gcc.gnu.org/ml/gcc-cvs/2006-11/msg00416.html +Maker: Greg Schafer <[email protected]> +Upstream Status: Not applicable. Tweak only for Temptools phase GCC-Pass2. +Description: Partially revert GCC driver to pre-GCC-4.3 state to allow startfiles to be + found in $prefix when GCC is configured for a non-standard prefix eg: /temptools. Full + background info in thread starting here: http://gcc.gnu.org/ml/gcc/2008-03/msg00095.html + and GCC bugzilla here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532 + +diff -Naur gcc-4.3.0-RC-20080222.orig/gcc/gcc.c gcc-4.3.0-RC-20080222/gcc/gcc.c +--- gcc-4.3.0-RC-20080222.orig/gcc/gcc.c 2008-01-24 18:57:12.000000000 +0000 ++++ gcc-4.3.0-RC-20080222/gcc/gcc.c 2008-03-02 06:07:36.000000000 +0000 +@@ -6370,6 +6370,11 @@ + machine_suffix, + standard_startfile_prefix, NULL), + NULL, PREFIX_PRIORITY_LAST, 0, 1); ++ add_prefix (&startfile_prefixes, ++ concat (standard_exec_prefix, ++ machine_suffix, ++ standard_startfile_prefix, NULL), ++ NULL, PREFIX_PRIORITY_LAST, 0, 1); + } + + /* Sysrooted prefixes are relocated because target_system_root is -- http://linuxfromscratch.org/mailman/listinfo/patches FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
