source: patches/gcc-4.1.2-pure64_specs-1.patch@ ee09899c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ee09899c was 2c79b57, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to GCC 4.1.2

  • Property mode set to 100644
File size: 15.5 KB
RevLine 
[69cde8d]1Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
[2c79b57]2Date: 2007-02-14
3Initial Package Version: 4.1.2
[69cde8d]4Upstream Status: Not Sent - LFS Specfic
5Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
6 the Pure LFS project.
7 More architectures added by Zack Winkles.
8 Further fine tunings by Greg Schafer.
9 Rediffed against gcc 4.0.0 by Robert Connolly.
[e7a7a6f]10 Rediffed against gcc 4.1.0 by Chris Staub
[2c79b57]11 Rediffed against gcc 4.1.2 by Jim Gifford
[69cde8d]12Description: This patch modifies the location of the dynamic linker for
13 the GCC Pass 2 build in LFS Chapter 5.
14
[2c79b57]15diff -Naur gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h gcc-4.1.2/gcc/config/alpha/linux-elf.h
16--- gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h 2005-06-24 18:22:41.000000000 -0700
17+++ gcc-4.1.2/gcc/config/alpha/linux-elf.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]18@@ -27,7 +27,7 @@
19 #define SUBTARGET_EXTRA_SPECS \
20 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
21
22-#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
23+#define ELF_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
24
25 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
26 %{O*:-O3} %{!O*:-O1} \
[2c79b57]27diff -Naur gcc-4.1.2.orig/gcc/config/arm/linux-elf.h gcc-4.1.2/gcc/config/arm/linux-elf.h
28--- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h 2005-10-09 18:04:31.000000000 -0700
29+++ gcc-4.1.2/gcc/config/arm/linux-elf.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]30@@ -51,7 +51,7 @@
31
32 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
33
34-#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
35+#define LINUX_TARGET_INTERPRETER "/tools/lib/ld-linux.so.2"
36
37 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
38 %{b} \
[2c79b57]39diff -Naur gcc-4.1.2.orig/gcc/config/frv/linux.h gcc-4.1.2/gcc/config/frv/linux.h
40--- gcc-4.1.2.orig/gcc/config/frv/linux.h 2005-06-24 18:22:41.000000000 -0700
41+++ gcc-4.1.2/gcc/config/frv/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]42@@ -41,7 +41,7 @@
43 %{mfdpic: -m elf32frvfd -z text} %{shared} %{pie} \
44 %{!shared: %{!static: \
45 %{rdynamic:-export-dynamic} \
46- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
47+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
48 %{static}}"
49
50 /* Support for compile-time default CPU. */
[2c79b57]51diff -Naur gcc-4.1.2.orig/gcc/config/i386/gnu.h gcc-4.1.2/gcc/config/i386/gnu.h
52--- gcc-4.1.2.orig/gcc/config/i386/gnu.h 2004-09-07 17:17:19.000000000 -0700
53+++ gcc-4.1.2/gcc/config/i386/gnu.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]54@@ -27,7 +27,7 @@
55 %{!shared: \
56 %{!static: \
57 %{rdynamic:-export-dynamic} \
58- %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
59+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
60 %{static:-static}}"
61
62 #undef STARTFILE_SPEC
[2c79b57]63diff -Naur gcc-4.1.2.orig/gcc/config/i386/linux.h gcc-4.1.2/gcc/config/i386/linux.h
64--- gcc-4.1.2.orig/gcc/config/i386/linux.h 2005-08-10 10:53:01.000000000 -0700
65+++ gcc-4.1.2/gcc/config/i386/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]66@@ -105,7 +105,7 @@
67 /* If ELF is the default format, we should not use /lib/elf. */
68
69 #define LINK_EMULATION "elf_i386"
70-#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
71+#define DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
72
73 #undef SUBTARGET_EXTRA_SPECS
74 #define SUBTARGET_EXTRA_SPECS \
[2c79b57]75diff -Naur gcc-4.1.2.orig/gcc/config/i386/linux64.h gcc-4.1.2/gcc/config/i386/linux64.h
76--- gcc-4.1.2.orig/gcc/config/i386/linux64.h 2005-08-10 10:53:01.000000000 -0700
77+++ gcc-4.1.2/gcc/config/i386/linux64.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]78@@ -60,8 +60,8 @@
79 %{!shared: \
80 %{!static: \
81 %{rdynamic:-export-dynamic} \
82- %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
83- %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
[e7a7a6f]84+ %{m32:%{!dynamic-linker:-dynamic-linker /tools/lib32/ld-linux.so.2}} \
85+ %{!m32:%{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux-x86-64.so.2}}} \
[69cde8d]86 %{static:-static}}"
87
[e7a7a6f]88 /* Similar to standard Linux, but adding -ffast-math support. */
[2c79b57]89diff -Naur gcc-4.1.2.orig/gcc/config/ia64/linux.h gcc-4.1.2/gcc/config/ia64/linux.h
90--- gcc-4.1.2.orig/gcc/config/ia64/linux.h 2006-12-12 07:24:07.000000000 -0800
91+++ gcc-4.1.2/gcc/config/ia64/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]92@@ -43,7 +43,7 @@
93 %{!shared: \
94 %{!static: \
95 %{rdynamic:-export-dynamic} \
96- %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
97+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux-ia64.so.2}} \
98 %{static:-static}}"
99
[2c79b57]100 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
101diff -Naur gcc-4.1.2.orig/gcc/config/linux.h gcc-4.1.2/gcc/config/linux.h
102--- gcc-4.1.2.orig/gcc/config/linux.h 2005-08-06 06:26:35.000000000 -0700
103+++ gcc-4.1.2/gcc/config/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]104@@ -104,3 +104,7 @@
105 #define TARGET_C99_FUNCTIONS 1
106
[e7a7a6f]107 #define TARGET_POSIX_IO
[69cde8d]108+
109+/* Remove /usr/include from the end of the include search path. */
110+#undef STANDARD_INCLUDE_DIR
111+#define STANDARD_INCLUDE_DIR 0
[2c79b57]112diff -Naur gcc-4.1.2.orig/gcc/config/m32r/linux.h gcc-4.1.2/gcc/config/m32r/linux.h
113--- gcc-4.1.2.orig/gcc/config/m32r/linux.h 2005-07-08 03:00:15.000000000 -0700
114+++ gcc-4.1.2/gcc/config/m32r/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]115@@ -66,7 +66,7 @@
116 %{!ibcs: \
117 %{!static: \
118 %{rdynamic:-export-dynamic} \
119- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
120+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
121 %{static:-static}}}"
122 #else
123 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \
124@@ -74,7 +74,7 @@
125 %{!ibcs: \
126 %{!static: \
127 %{rdynamic:-export-dynamic} \
128- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
129+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
130 %{static:-static}}}"
131 #endif
132
[2c79b57]133diff -Naur gcc-4.1.2.orig/gcc/config/m68k/linux.h gcc-4.1.2/gcc/config/m68k/linux.h
134--- gcc-4.1.2.orig/gcc/config/m68k/linux.h 2005-06-24 18:22:41.000000000 -0700
135+++ gcc-4.1.2/gcc/config/m68k/linux.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]136@@ -128,7 +128,7 @@
[69cde8d]137 %{!shared: \
138 %{!static: \
139 %{rdynamic:-export-dynamic} \
140- %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
141+ %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \
142 %{static}}"
143
144 /* For compatibility with linux/a.out */
[2c79b57]145diff -Naur gcc-4.1.2.orig/gcc/config/mips/linux.h gcc-4.1.2/gcc/config/mips/linux.h
146--- gcc-4.1.2.orig/gcc/config/mips/linux.h 2006-12-17 05:57:31.000000000 -0800
147+++ gcc-4.1.2/gcc/config/mips/linux.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]148@@ -112,7 +112,7 @@
[69cde8d]149 %{!ibcs: \
150 %{!static: \
151 %{rdynamic:-export-dynamic} \
152- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
153+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
154 %{static:-static}}}"
155
156 #undef SUBTARGET_ASM_SPEC
[2c79b57]157diff -Naur gcc-4.1.2.orig/gcc/config/mips/linux64.h gcc-4.1.2/gcc/config/mips/linux64.h
158--- gcc-4.1.2.orig/gcc/config/mips/linux64.h 2005-06-24 18:22:41.000000000 -0700
159+++ gcc-4.1.2/gcc/config/mips/linux64.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]160@@ -47,9 +47,9 @@
[69cde8d]161 %{!static: \
162 %{rdynamic:-export-dynamic} \
163 %{!dynamic-linker: \
164- %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \
165- %{mabi=64: -dynamic-linker /lib64/ld.so.1} \
166- %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \
[e7a7a6f]167+ %{mabi=n32: -dynamic-linker /tools/lib64/ld.so.1} \
168+ %{mabi=64: -dynamic-linker /tools/lib/ld.so.1} \
169+ %{mabi=32: -dynamic-linker /tools/lib32/ld.so.1}}} \
[69cde8d]170 %{static:-static}}} \
171 %{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
172 %{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
[2c79b57]173diff -Naur gcc-4.1.2.orig/gcc/config/mn10300/linux.h gcc-4.1.2/gcc/config/mn10300/linux.h
174--- gcc-4.1.2.orig/gcc/config/mn10300/linux.h 2005-06-24 18:22:41.000000000 -0700
175+++ gcc-4.1.2/gcc/config/mn10300/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]176@@ -37,7 +37,7 @@
177 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
178 %{!static: \
179 %{rdynamic:-export-dynamic} \
180- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
181+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
182 %{static:-static}"
183
[e7a7a6f]184 #undef PROCESSOR_DEFAULT
[2c79b57]185diff -Naur gcc-4.1.2.orig/gcc/config/pa/pa-linux.h gcc-4.1.2/gcc/config/pa/pa-linux.h
186--- gcc-4.1.2.orig/gcc/config/pa/pa-linux.h 2007-01-11 18:23:38.000000000 -0800
187+++ gcc-4.1.2/gcc/config/pa/pa-linux.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]188@@ -55,7 +55,7 @@
[69cde8d]189 %{!shared: \
190 %{!static: \
191 %{rdynamic:-export-dynamic} \
192- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
193+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
194 %{static:-static}}"
195
196 /* glibc's profiling functions don't need gcc to allocate counters. */
[2c79b57]197diff -Naur gcc-4.1.2.orig/gcc/config/rs6000/linux64.h gcc-4.1.2/gcc/config/rs6000/linux64.h
198--- gcc-4.1.2.orig/gcc/config/rs6000/linux64.h 2006-02-10 12:58:33.000000000 -0800
199+++ gcc-4.1.2/gcc/config/rs6000/linux64.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]200@@ -339,11 +339,11 @@
[69cde8d]201
202 #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
203 %{rdynamic:-export-dynamic} \
204- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
[e7a7a6f]205+ %{!dynamic-linker:-dynamic-linker /tools/lib32/ld.so.1}}}"
[69cde8d]206
207 #define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
208 %{rdynamic:-export-dynamic} \
209- %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
[e7a7a6f]210+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld64.so.1}}}"
[69cde8d]211
212 #undef TOC_SECTION_ASM_OP
213 #define TOC_SECTION_ASM_OP \
[2c79b57]214diff -Naur gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h gcc-4.1.2/gcc/config/rs6000/sysv4.h
215--- gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h 2006-02-10 12:58:33.000000000 -0800
216+++ gcc-4.1.2/gcc/config/rs6000/sysv4.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]217@@ -1041,7 +1041,7 @@
[69cde8d]218
219 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
220 %{rdynamic:-export-dynamic} \
221- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
222+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
223
224 #if defined(HAVE_LD_EH_FRAME_HDR)
225 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
[e7a7a6f]226@@ -1072,7 +1072,7 @@
[69cde8d]227
228 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
229 %{rdynamic:-export-dynamic} \
230- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
231+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
232
233 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
234 %{!undef: \
[2c79b57]235diff -Naur gcc-4.1.2.orig/gcc/config/s390/linux.h gcc-4.1.2/gcc/config/s390/linux.h
236--- gcc-4.1.2.orig/gcc/config/s390/linux.h 2006-12-12 07:24:07.000000000 -0800
237+++ gcc-4.1.2/gcc/config/s390/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]238@@ -86,8 +86,8 @@
239 %{!static: \
240 %{rdynamic:-export-dynamic} \
241 %{!dynamic-linker: \
242- %{m31:-dynamic-linker /lib/ld.so.1} \
243- %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
244+ %{m31:-dynamic-linker /tools/lib/ld.so.1} \
245+ %{m64:-dynamic-linker /tools/lib/ld64.so.1}}}}"
246
[2c79b57]247 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
[69cde8d]248
[2c79b57]249diff -Naur gcc-4.1.2.orig/gcc/config/sh/linux.h gcc-4.1.2/gcc/config/sh/linux.h
250--- gcc-4.1.2.orig/gcc/config/sh/linux.h 2005-06-24 18:22:41.000000000 -0700
251+++ gcc-4.1.2/gcc/config/sh/linux.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]252@@ -60,7 +60,7 @@
[69cde8d]253 "%{shared:-shared} \
254 %{!static: \
255 %{rdynamic:-export-dynamic} \
256- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
257+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
258 %{static:-static}"
259
[e7a7a6f]260 /* Output assembler code to STREAM to call the profiler. */
[2c79b57]261diff -Naur gcc-4.1.2.orig/gcc/config/sparc/linux.h gcc-4.1.2/gcc/config/sparc/linux.h
262--- gcc-4.1.2.orig/gcc/config/sparc/linux.h 2006-02-11 00:38:51.000000000 -0800
263+++ gcc-4.1.2/gcc/config/sparc/linux.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]264@@ -126,13 +126,13 @@
[69cde8d]265 /* If ELF is the default format, we should not use /lib/elf. */
266
267 #undef LINK_SPEC
268-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
269+#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
270 %{!mno-relax:%{!r:-relax}} \
271 %{!shared: \
272 %{!ibcs: \
273 %{!static: \
274 %{rdynamic:-export-dynamic} \
275- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
276+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
277 %{static:-static}}}"
278
279 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
[2c79b57]280diff -Naur gcc-4.1.2.orig/gcc/config/sparc/linux64.h gcc-4.1.2/gcc/config/sparc/linux64.h
281--- gcc-4.1.2.orig/gcc/config/sparc/linux64.h 2006-02-11 00:38:51.000000000 -0800
282+++ gcc-4.1.2/gcc/config/sparc/linux64.h 2007-02-14 07:51:38.000000000 -0800
[e7a7a6f]283@@ -162,21 +162,21 @@
[69cde8d]284 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
285 { "link_arch", LINK_ARCH_SPEC },
286
287-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
[e7a7a6f]288+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib32 %{shared:-shared} \
[69cde8d]289 %{!shared: \
290 %{!ibcs: \
291 %{!static: \
292 %{rdynamic:-export-dynamic} \
293- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
[e7a7a6f]294+ %{!dynamic-linker:-dynamic-linker /tools/lib32/ld-linux.so.2}} \
[69cde8d]295 %{static:-static}}} \
296 "
297
298-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
[e7a7a6f]299+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib %{shared:-shared} \
[69cde8d]300 %{!shared: \
301 %{!ibcs: \
302 %{!static: \
303 %{rdynamic:-export-dynamic} \
304- %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
[e7a7a6f]305+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
[69cde8d]306 %{static:-static}}} \
307 "
308
[e7a7a6f]309@@ -252,12 +252,12 @@
[69cde8d]310 #else /* !SPARC_BI_ARCH */
311
312 #undef LINK_SPEC
313-#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
[e7a7a6f]314+#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib %{shared:-shared} \
[69cde8d]315 %{!shared: \
316 %{!ibcs: \
317 %{!static: \
318 %{rdynamic:-export-dynamic} \
319- %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
[e7a7a6f]320+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
[69cde8d]321 %{static:-static}}} \
322 %{mlittle-endian:-EL} \
323 %{!mno-relax:%{!r:-relax}} \
[2c79b57]324diff -Naur gcc-4.1.2.orig/gcc/config/xtensa/linux.h gcc-4.1.2/gcc/config/xtensa/linux.h
325--- gcc-4.1.2.orig/gcc/config/xtensa/linux.h 2005-06-24 18:22:41.000000000 -0700
326+++ gcc-4.1.2/gcc/config/xtensa/linux.h 2007-02-14 07:51:38.000000000 -0800
[69cde8d]327@@ -50,7 +50,7 @@
328 %{!ibcs: \
329 %{!static: \
330 %{rdynamic:-export-dynamic} \
331- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
332+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
333 %{static:-static}}}"
334
335 #undef LOCAL_LABEL_PREFIX
[2c79b57]336diff -Naur gcc-4.1.2.orig/gcc/gcc.c gcc-4.1.2/gcc/gcc.c
337--- gcc-4.1.2.orig/gcc/gcc.c 2006-11-07 06:26:21.000000000 -0800
338+++ gcc-4.1.2/gcc/gcc.c 2007-02-14 07:48:55.000000000 -0800
339@@ -3821,16 +3821,22 @@
340 PREFIX_PRIORITY_LAST, 2, 0);
341 add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",
342 PREFIX_PRIORITY_LAST, 2, 0);
343- add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS",
344+ if (*cross_compile == '0')
345+ {
346+ add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS",
347 PREFIX_PRIORITY_LAST, 2, 0);
348- add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS",
349+ add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS",
350 PREFIX_PRIORITY_LAST, 2, 0);
351+ }
352 #endif
353
354 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
355 PREFIX_PRIORITY_LAST, 1, 0);
356- add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS",
357+ if (*cross_compile == '0')
358+ {
359+ add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS",
360 PREFIX_PRIORITY_LAST, 1, 0);
361+ }
362
363 tooldir_prefix = concat (tooldir_base_prefix, spec_machine,
364 dir_separator_str, NULL);
Note: See TracBrowser for help on using the repository browser.