source: patches/gcc-4.3.2-specs-1.patch@ 2b770e2d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2b770e2d was 7b31c44, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Coreutils to 6.12.
Drop Mktemp in favor of the version included in Coreutils.
Updated Perl to 5.10.0.
Updated File to 4.25.
Updated File to 4.26.
Updated GCC to 4.3.2.

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