]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/gcc-4.4.3-startfiles_fix-1.patch
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[people/teissler/ipfire-2.x.git] / src / patches / gcc-4.4.3-startfiles_fix-1.patch
CommitLineData
82b312a9
MT
1Submitted By: Jeremy Huntwork (jhuntwork AT linuxfromscratch DOT org)
2Date: 2008-12-05
3Initial Package Version: 4.3.2
4Upstream Status: See below.
5Origin: DIY Linux, See below.
6Description: Original patch follows:
7
8# DIY Linux Patch
9Date: 2008-09-09
10Author: Refer Origin.
11Origin: Partial revert of http://gcc.gnu.org/ml/gcc-cvs/2006-11/msg00416.html
12Maker: Greg Schafer <gschafer@zip.com.au>
13Upstream Status: Not applicable. Tweak only for Temptools phase GCC-Pass2.
14Description: Partially revert GCC driver to pre-GCC-4.3 state to allow startfiles to be
15 found in $prefix when GCC is configured for a non-standard prefix eg: /temptools. Full
16 background info in thread starting here: http://gcc.gnu.org/ml/gcc/2008-03/msg00095.html
17 and GCC bugzilla here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532
18
19diff -Naur gcc-4.3.0-RC-20080222.orig/gcc/gcc.c gcc-4.3.0-RC-20080222/gcc/gcc.c
20--- gcc-4.3.0-RC-20080222.orig/gcc/gcc.c 2008-01-24 18:57:12.000000000 +0000
21+++ gcc-4.3.0-RC-20080222/gcc/gcc.c 2008-03-02 06:07:36.000000000 +0000
22@@ -6370,6 +6370,11 @@
23 machine_suffix,
24 standard_startfile_prefix, NULL),
25 NULL, PREFIX_PRIORITY_LAST, 0, 1);
26+ add_prefix (&startfile_prefixes,
27+ concat (standard_exec_prefix,
28+ machine_suffix,
29+ standard_startfile_prefix, NULL),
30+ NULL, PREFIX_PRIORITY_LAST, 0, 1);
31 }
32
33 /* Sysrooted prefixes are relocated because target_system_root is