source: patches/gcc-4.4.2-specs-1.patch@ c695188

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c695188 was 9722468, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add the new GCC Patches.

  • Property mode set to 100644
File size: 16.2 KB
RevLine 
[9722468]1Submitted By: Jim Gifford (jim at cross-lfs dot org)
2Date: 01-01-2010
3Initial Package Version: 4.4.2
4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
5 the Pure LFS project.
6Upstream Status: Not Applied
7Description: This patch modifies the location of the dynamic linker for gcc-4.4.2.
8
9diff -Naur gcc-4.4.2.orig/gcc/config/alpha/gnu.h gcc-4.4.2/gcc/config/alpha/gnu.h
10--- gcc-4.4.2.orig/gcc/config/alpha/gnu.h 2004-09-07 20:17:19.000000000 -0400
11+++ gcc-4.4.2/gcc/config/alpha/gnu.h 2010-01-01 16:40:52.146543867 -0500
12@@ -11,7 +11,7 @@
13 } while (0)
14
15 #undef ELF_DYNAMIC_LINKER
16-#define ELF_DYNAMIC_LINKER "/lib/ld.so"
17+#define ELF_DYNAMIC_LINKER "/tools/lib/ld.so"
18
19 #undef STARTFILE_SPEC
20 #define STARTFILE_SPEC \
21diff -Naur gcc-4.4.2.orig/gcc/config/alpha/linux-elf.h gcc-4.4.2/gcc/config/alpha/linux-elf.h
22--- gcc-4.4.2.orig/gcc/config/alpha/linux-elf.h 2007-08-02 06:49:31.000000000 -0400
23+++ gcc-4.4.2/gcc/config/alpha/linux-elf.h 2010-01-01 16:40:51.955435781 -0500
24@@ -27,8 +27,8 @@
25 #define EXTRA_SPECS \
26 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
27
28-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
29-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
30+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
31+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
32 #if UCLIBC_DEFAULT
33 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
34 #else
35diff -Naur gcc-4.4.2.orig/gcc/config/arm/linux-eabi.h gcc-4.4.2/gcc/config/arm/linux-eabi.h
36--- gcc-4.4.2.orig/gcc/config/arm/linux-eabi.h 2007-11-08 08:44:09.000000000 -0500
37+++ gcc-4.4.2/gcc/config/arm/linux-eabi.h 2010-01-01 16:40:56.208561949 -0500
38@@ -61,7 +61,7 @@
39 /* Use ld-linux.so.3 so that it will be possible to run "classic"
40 GNU/Linux binaries on an EABI system. */
41 #undef GLIBC_DYNAMIC_LINKER
42-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
43+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3"
44
45 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
46 use the GNU/Linux version, not the generic BPABI version. */
47diff -Naur gcc-4.4.2.orig/gcc/config/arm/linux-elf.h gcc-4.4.2/gcc/config/arm/linux-elf.h
48--- gcc-4.4.2.orig/gcc/config/arm/linux-elf.h 2009-02-20 10:20:38.000000000 -0500
49+++ gcc-4.4.2/gcc/config/arm/linux-elf.h 2010-01-01 16:40:55.488437008 -0500
50@@ -62,7 +62,7 @@
51
52 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
53
54-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
55+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
56
57 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
58 %{b} \
59diff -Naur gcc-4.4.2.orig/gcc/config/bfin/linux.h gcc-4.4.2/gcc/config/bfin/linux.h
60--- gcc-4.4.2.orig/gcc/config/bfin/linux.h 2008-11-27 04:11:50.000000000 -0500
61+++ gcc-4.4.2/gcc/config/bfin/linux.h 2010-01-01 16:41:02.705537802 -0500
62@@ -22,7 +22,7 @@
63 %{shared:-G -Bdynamic} \
64 %{!shared: %{!static: \
65 %{rdynamic:-export-dynamic} \
66- %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
67+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-uClibc.so.0}} \
68 %{static}} -init __init -fini __fini"
69
70 #define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"
71diff -Naur gcc-4.4.2.orig/gcc/config/cris/linux.h gcc-4.4.2/gcc/config/cris/linux.h
72--- gcc-4.4.2.orig/gcc/config/cris/linux.h 2009-03-22 11:15:04.000000000 -0400
73+++ gcc-4.4.2/gcc/config/cris/linux.h 2010-01-01 16:40:56.296500400 -0500
74@@ -103,7 +103,7 @@
75 #undef CRIS_DEFAULT_CPU_VERSION
76 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
77
78-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
79+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
80
81 /* We need an -rpath-link to ld.so.1, and presumably to each directory
82 specified with -B. */
83diff -Naur gcc-4.4.2.orig/gcc/config/frv/linux.h gcc-4.4.2/gcc/config/frv/linux.h
84--- gcc-4.4.2.orig/gcc/config/frv/linux.h 2007-08-02 06:49:31.000000000 -0400
85+++ gcc-4.4.2/gcc/config/frv/linux.h 2010-01-01 16:40:53.607624240 -0500
86@@ -35,7 +35,7 @@
87 #define ENDFILE_SPEC \
88 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
89
90-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
91+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
92
93 #undef LINK_SPEC
94 #define LINK_SPEC "\
95diff -Naur gcc-4.4.2.orig/gcc/config/i386/gnu.h gcc-4.4.2/gcc/config/i386/gnu.h
96--- gcc-4.4.2.orig/gcc/config/i386/gnu.h 2008-11-13 18:28:46.000000000 -0500
97+++ gcc-4.4.2/gcc/config/i386/gnu.h 2010-01-01 16:40:54.520443077 -0500
98@@ -21,7 +21,7 @@
99 */
100
101 #undef GLIBC_DYNAMIC_LINKER
102-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so"
103+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so"
104
105 #undef TARGET_VERSION
106 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
107diff -Naur gcc-4.4.2.orig/gcc/config/i386/linux64.h gcc-4.4.2/gcc/config/i386/linux64.h
108--- gcc-4.4.2.orig/gcc/config/i386/linux64.h 2009-04-09 19:23:07.000000000 -0400
109+++ gcc-4.4.2/gcc/config/i386/linux64.h 2010-01-01 16:40:54.928439175 -0500
110@@ -58,8 +58,8 @@
111 When the -shared link option is used a final link is not being
112 done. */
113
114-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
115-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
116+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
117+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
118
119 #undef ASM_SPEC
120 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
121diff -Naur gcc-4.4.2.orig/gcc/config/i386/linux.h gcc-4.4.2/gcc/config/i386/linux.h
122--- gcc-4.4.2.orig/gcc/config/i386/linux.h 2009-05-21 09:21:30.000000000 -0400
123+++ gcc-4.4.2/gcc/config/i386/linux.h 2010-01-01 16:40:54.430524270 -0500
124@@ -100,7 +100,7 @@
125
126 /* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */
127 #define LINK_EMULATION "elf_i386"
128-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
129+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
130
131 #undef ASM_SPEC
132 #define ASM_SPEC \
133diff -Naur gcc-4.4.2.orig/gcc/config/ia64/linux.h gcc-4.4.2/gcc/config/ia64/linux.h
134--- gcc-4.4.2.orig/gcc/config/ia64/linux.h 2009-02-12 11:30:53.000000000 -0500
135+++ gcc-4.4.2/gcc/config/ia64/linux.h 2010-01-01 16:40:52.554505710 -0500
136@@ -37,7 +37,7 @@
137 /* Define this for shared library support because it isn't in the main
138 linux.h file. */
139
140-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
141+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
142
143 #undef LINK_SPEC
144 #define LINK_SPEC "\
145diff -Naur gcc-4.4.2.orig/gcc/config/kopensolaris-gnu.h gcc-4.4.2/gcc/config/kopensolaris-gnu.h
146--- gcc-4.4.2.orig/gcc/config/kopensolaris-gnu.h 2009-01-29 13:48:41.000000000 -0500
147+++ gcc-4.4.2/gcc/config/kopensolaris-gnu.h 2010-01-01 16:40:57.398436744 -0500
148@@ -33,5 +33,5 @@
149
150 #ifdef GLIBC_DYNAMIC_LINKER
151 #undef GLIBC_DYNAMIC_LINKER
152-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
153+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
154 #endif
155diff -Naur gcc-4.4.2.orig/gcc/config/linux.h gcc-4.4.2/gcc/config/linux.h
156--- gcc-4.4.2.orig/gcc/config/linux.h 2009-04-09 19:23:07.000000000 -0400
157+++ gcc-4.4.2/gcc/config/linux.h 2010-01-01 16:40:57.198535231 -0500
158@@ -117,9 +117,9 @@
159 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
160 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
161 supporting both 32-bit and 64-bit compilation. */
162-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
163-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
164-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
165+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
166+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
167+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
168 #define LINUX_DYNAMIC_LINKER \
169 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
170 #define LINUX_DYNAMIC_LINKER32 \
171diff -Naur gcc-4.4.2.orig/gcc/config/m32r/linux.h gcc-4.4.2/gcc/config/m32r/linux.h
172--- gcc-4.4.2.orig/gcc/config/m32r/linux.h 2007-08-02 06:49:31.000000000 -0400
173+++ gcc-4.4.2/gcc/config/m32r/linux.h 2010-01-01 16:40:59.174470383 -0500
174@@ -58,7 +58,7 @@
175
176 /* If ELF is the default format, we should not use /lib/elf. */
177
178-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
179+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
180
181 #undef LINK_SPEC
182 #if TARGET_LITTLE_ENDIAN
183diff -Naur gcc-4.4.2.orig/gcc/config/m68k/linux.h gcc-4.4.2/gcc/config/m68k/linux.h
184--- gcc-4.4.2.orig/gcc/config/m68k/linux.h 2007-09-24 17:07:08.000000000 -0400
185+++ gcc-4.4.2/gcc/config/m68k/linux.h 2010-01-01 16:40:59.643532888 -0500
186@@ -84,7 +84,7 @@
187
188 /* If ELF is the default format, we should not use /lib/elf. */
189
190-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
191+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
192
193 #undef LINK_SPEC
194 #define LINK_SPEC "-m m68kelf %{shared} \
195diff -Naur gcc-4.4.2.orig/gcc/config/mips/linux64.h gcc-4.4.2/gcc/config/mips/linux64.h
196--- gcc-4.4.2.orig/gcc/config/mips/linux64.h 2009-02-20 10:20:38.000000000 -0500
197+++ gcc-4.4.2/gcc/config/mips/linux64.h 2010-01-01 16:41:02.435499259 -0500
198@@ -35,10 +35,10 @@
199 %{!shared: \
200 %{profile:-lc_p} %{!profile:-lc}}"
201
202-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
203-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
204-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
205-#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
206+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
207+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1"
208+#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1"
209+#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0"
210 #define LINUX_DYNAMIC_LINKERN32 \
211 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
212
213diff -Naur gcc-4.4.2.orig/gcc/config/mips/linux.h gcc-4.4.2/gcc/config/mips/linux.h
214--- gcc-4.4.2.orig/gcc/config/mips/linux.h 2009-02-20 10:20:38.000000000 -0500
215+++ gcc-4.4.2/gcc/config/mips/linux.h 2010-01-01 16:41:02.139500904 -0500
216@@ -64,7 +64,7 @@
217 #undef MIPS_DEFAULT_GVALUE
218 #define MIPS_DEFAULT_GVALUE 0
219
220-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
221+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
222
223 /* Borrowed from sparc/linux.h */
224 #undef LINK_SPEC
225diff -Naur gcc-4.4.2.orig/gcc/config/mn10300/linux.h gcc-4.4.2/gcc/config/mn10300/linux.h
226--- gcc-4.4.2.orig/gcc/config/mn10300/linux.h 2007-08-02 06:49:31.000000000 -0400
227+++ gcc-4.4.2/gcc/config/mn10300/linux.h 2010-01-01 16:40:58.791443632 -0500
228@@ -32,7 +32,7 @@
229 #undef ASM_SPEC
230 #define ASM_SPEC "%{Wa,*:%*}"
231
232-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
233+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
234
235 #undef LINK_SPEC
236 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
237diff -Naur gcc-4.4.2.orig/gcc/config/pa/pa-linux.h gcc-4.4.2/gcc/config/pa/pa-linux.h
238--- gcc-4.4.2.orig/gcc/config/pa/pa-linux.h 2007-08-02 06:49:31.000000000 -0400
239+++ gcc-4.4.2/gcc/config/pa/pa-linux.h 2010-01-01 16:40:53.204592866 -0500
240@@ -44,7 +44,7 @@
241 /* Define this for shared library support because it isn't in the main
242 linux.h file. */
243
244-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
245+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
246
247 #undef LINK_SPEC
248 #define LINK_SPEC "\
249diff -Naur gcc-4.4.2.orig/gcc/config/rs6000/linux64.h gcc-4.4.2/gcc/config/rs6000/linux64.h
250--- gcc-4.4.2.orig/gcc/config/rs6000/linux64.h 2009-04-09 19:23:07.000000000 -0400
251+++ gcc-4.4.2/gcc/config/rs6000/linux64.h 2010-01-01 16:40:56.871467976 -0500
252@@ -342,10 +342,10 @@
253 #undef LINK_OS_DEFAULT_SPEC
254 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
255
256-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
257-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
258-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
259-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
260+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
261+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1"
262+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
263+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
264 #if UCLIBC_DEFAULT
265 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
266 #else
267diff -Naur gcc-4.4.2.orig/gcc/config/rs6000/sysv4.h gcc-4.4.2/gcc/config/rs6000/sysv4.h
268--- gcc-4.4.2.orig/gcc/config/rs6000/sysv4.h 2009-04-09 19:23:07.000000000 -0400
269+++ gcc-4.4.2/gcc/config/rs6000/sysv4.h 2010-01-01 16:40:56.770656893 -0500
270@@ -901,8 +901,8 @@
271
272 #define LINK_START_LINUX_SPEC ""
273
274-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
275-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
276+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
277+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
278 #if UCLIBC_DEFAULT
279 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
280 #else
281@@ -944,7 +944,7 @@
282
283 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
284 %{rdynamic:-export-dynamic} \
285- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
286+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
287
288 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
289 %{!undef: \
290diff -Naur gcc-4.4.2.orig/gcc/config/s390/linux.h gcc-4.4.2/gcc/config/s390/linux.h
291--- gcc-4.4.2.orig/gcc/config/s390/linux.h 2007-08-02 06:49:31.000000000 -0400
292+++ gcc-4.4.2/gcc/config/s390/linux.h 2010-01-01 16:40:58.140508091 -0500
293@@ -72,8 +72,8 @@
294 #define MULTILIB_DEFAULTS { "m31" }
295 #endif
296
297-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
298-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
299+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
300+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
301
302 #undef LINK_SPEC
303 #define LINK_SPEC \
304diff -Naur gcc-4.4.2.orig/gcc/config/sh/linux.h gcc-4.4.2/gcc/config/sh/linux.h
305--- gcc-4.4.2.orig/gcc/config/sh/linux.h 2007-08-02 06:49:31.000000000 -0400
306+++ gcc-4.4.2/gcc/config/sh/linux.h 2010-01-01 16:41:01.480474690 -0500
307@@ -47,7 +47,7 @@
308
309 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
310
311-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
312+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
313
314 #undef SUBTARGET_LINK_EMUL_SUFFIX
315 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
316diff -Naur gcc-4.4.2.orig/gcc/config/sparc/linux64.h gcc-4.4.2/gcc/config/sparc/linux64.h
317--- gcc-4.4.2.orig/gcc/config/sparc/linux64.h 2009-02-20 10:20:38.000000000 -0500
318+++ gcc-4.4.2/gcc/config/sparc/linux64.h 2010-01-01 16:41:01.077439001 -0500
319@@ -109,8 +109,8 @@
320
321 /* If ELF is the default format, we should not use /lib/elf. */
322
323-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
324-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
325+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
326+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
327
328 #ifdef SPARC_BI_ARCH
329
330@@ -121,7 +121,7 @@
331 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
332 { "link_arch", LINK_ARCH_SPEC },
333
334-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
335+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/tools/lib %{shared:-shared} \
336 %{!shared: \
337 %{!ibcs: \
338 %{!static: \
339@@ -130,7 +130,7 @@
340 %{static:-static}}} \
341 "
342
343-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
344+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
345 %{!shared: \
346 %{!ibcs: \
347 %{!static: \
348@@ -211,7 +211,7 @@
349 #else /* !SPARC_BI_ARCH */
350
351 #undef LINK_SPEC
352-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
353+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
354 %{!shared: \
355 %{!ibcs: \
356 %{!static: \
357diff -Naur gcc-4.4.2.orig/gcc/config/sparc/linux.h gcc-4.4.2/gcc/config/sparc/linux.h
358--- gcc-4.4.2.orig/gcc/config/sparc/linux.h 2009-02-20 10:20:38.000000000 -0500
359+++ gcc-4.4.2/gcc/config/sparc/linux.h 2010-01-01 16:41:00.694595256 -0500
360@@ -83,10 +83,10 @@
361
362 /* If ELF is the default format, we should not use /lib/elf. */
363
364-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
365+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
366
367 #undef LINK_SPEC
368-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
369+#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
370 %{!mno-relax:%{!r:-relax}} \
371 %{!shared: \
372 %{!ibcs: \
373diff -Naur gcc-4.4.2.orig/gcc/config/xtensa/linux.h gcc-4.4.2/gcc/config/xtensa/linux.h
374--- gcc-4.4.2.orig/gcc/config/xtensa/linux.h 2008-01-17 20:37:53.000000000 -0500
375+++ gcc-4.4.2/gcc/config/xtensa/linux.h 2010-01-01 16:40:52.823530902 -0500
376@@ -43,7 +43,7 @@
377 %{mlongcalls:--longcalls} \
378 %{mno-longcalls:--no-longcalls}"
379
380-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
381+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
382
383 #undef LINK_SPEC
384 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.