]>
Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # This is the linker host specific file. This is invoked by the |
2 | # autoconf generated configure script. Putting it in a separate shell | |
3 | # file lets us skip running autoconf when modifying host specific | |
4 | # information. | |
5 | ||
6 | # This file sets the following shell variables: | |
7 | # HDEFINES host specific compiler flags | |
8 | # HOSTING_CRT0 crt0.o file used for bootstrapping | |
9 | # HOSTING_LIBS libraries used for bootstrapping | |
10 | # NATIVE_LIB_DIRS library directories to search on this host | |
11 | ||
12 | HDEFINES= | |
13 | HOSTING_CRT0=/lib/crt0.o | |
cd5d26f2 | 14 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc' |
252b5132 RH |
15 | NATIVE_LIB_DIRS= |
16 | ||
17 | case "${host}" in | |
18 | ||
19 | alpha*-*-linux-gnu*) | |
cd5d26f2 AS |
20 | HOSTING_CRT0='-dynamic-linker `egrep "ld[^ ]*\.so" \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
21 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
252b5132 RH |
22 | ;; |
23 | ||
24 | alpha*-*-netbsd*) | |
25 | # The new BSD `make' has a bug: it doesn't pass empty arguments in | |
26 | # shell commands. So we need to make this value non-empty in order | |
27 | # for the genscripts.sh call to work. There's nothing magic about | |
28 | # the value `/lib'; it's just a dummy. | |
29 | NATIVE_LIB_DIRS=/lib | |
30 | HOSTING_CRT0=/usr/lib/crt0.o | |
31 | ;; | |
32 | ||
1c56fb87 NC |
33 | arm*-*-linux-gnu*) |
34 | HOSTING_CRT0='-p -dynamic-linker `fgrep ld-linux.so \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld-linux.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' | |
35 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
36 | ;; | |
37 | ||
a842aceb | 38 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12]\.* | i[34567]86-*-freebsd*aout* | i[3456]86-*-netbsd*) |
252b5132 RH |
39 | # The new BSD `make' has a bug: it doesn't pass empty arguments in |
40 | # shell commands. So we need to make this value non-empty in order | |
41 | # for the genscripts.sh call to work. There's nothing magic about | |
42 | # the value `/lib'; it's just a dummy. | |
43 | NATIVE_LIB_DIRS=/lib | |
44 | HOSTING_CRT0=/usr/lib/crt0.o | |
45 | ;; | |
46 | ||
47 | i[3456]86-*-sysv4*) | |
cd5d26f2 AS |
48 | HOSTING_CRT0='/usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
49 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` /usr/ccs/lib/crtn.o' | |
252b5132 RH |
50 | NATIVE_LIB_DIRS=/usr/ccs/lib |
51 | ;; | |
52 | ||
53 | i[3456]86-sequent-ptx* | i[3456]86-sequent-sysv*) | |
cd5d26f2 AS |
54 | HOSTING_CRT0='/lib/crt0.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
55 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi`' | |
252b5132 RH |
56 | ;; |
57 | ||
58 | i[3456]86-*-sysv*) | |
59 | HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`' | |
cd5d26f2 | 60 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o' |
252b5132 RH |
61 | ;; |
62 | ||
63 | i[3456]86-*-solaris*) | |
cd5d26f2 AS |
64 | HOSTING_CRT0='`if [ -f ../gcc/crt1.o ]; then echo ../gcc/crt1.o; else ${CC} -print-file-name=crt1.o; fi` `if [ -f ../gcc/crti.o ]; then echo ../gcc/crti.o; else ${CC} -print-file-name=crti.o; fi` /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
65 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else ${CC} -print-file-name=crtn.o; fi`' | |
252b5132 RH |
66 | NATIVE_LIB_DIRS=/usr/ccs/lib |
67 | ;; | |
68 | ||
69 | i[3456]86-*-sco* | i[3456]86-*-isc*) | |
70 | # In some configurations gcc does not use crtbegin.o and crtend.o. | |
71 | # In that case gcc -print-file-name=crtbegin.o will simply print | |
72 | # crtbegin.o. We create dummy crtbegin.o and crtend.o files to | |
73 | # handle this. | |
74 | echo "int dummy_crtbegin () { return 0; }" > crtbegin.c | |
75 | ${CC} -c crtbegin.c -o crtbegin.o | |
76 | rm -f crtbegin.c | |
77 | echo "int dummy_crteng () { return 0; }" > crtend.c | |
78 | ${CC} -c crtend.c -o crtend.o | |
79 | rm -f crtend.c | |
cd5d26f2 AS |
80 | HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
81 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` /lib/crtn.o' | |
252b5132 RH |
82 | ;; |
83 | ||
c709b096 | 84 | i[3456]86-*-linux*aout* | i[3456]86-*-linux*oldld) |
252b5132 RH |
85 | HOSTING_CRT0=/usr/lib/crt0.o |
86 | ;; | |
87 | ||
88 | i[3456]86-*-linux*libc1*) | |
cd5d26f2 AS |
89 | HOSTING_CRT0='-dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; elif [ -f /usr/lib/crtbegin.o ]; then echo /usr/lib/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
90 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; elif [ -f /usr/lib/crtend.o ]; then echo /usr/lib/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
252b5132 RH |
91 | ;; |
92 | ||
93 | i[3456]86-*-linux-gnu*) | |
cd5d26f2 AS |
94 | HOSTING_CRT0='-dynamic-linker `fgrep ld-linux.so \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld-linux.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
95 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
252b5132 RH |
96 | ;; |
97 | ||
98 | i[3456]86-*-lynxos*) | |
99 | HOSTING_CRT0=/lib/init1.o | |
cd5d26f2 | 100 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc -lm /lib/initn.o' |
252b5132 RH |
101 | ;; |
102 | ||
a7e78dae ILT |
103 | i[3456]86-pc-interix*) |
104 | HOSTING_CRT0='$$INTERIX_ROOT/usr/lib/crt0.o' | |
105 | NATIVE_LIB_DIRS='$$INTERIX_ROOT/usr/lib/' | |
cd5d26f2 | 106 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L $$X/local_bin -L $$INTERIX_ROOT/usr/lib -lc -lcpsx -lc -lcpsx $$INTERIX_ROOT/usr/lib/psxdll.a $$INTERIX_ROOT/usr/lib/psxdll2.a' |
a7e78dae ILT |
107 | ;; |
108 | ||
350fdb00 PB |
109 | i[3456]86-*-cygwin*) |
110 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`' | |
111 | ;; | |
112 | ||
ebd6fc29 | 113 | ia64-*-linux-gnu*) |
99a4150f JW |
114 | HOSTING_CRT0='-dynamic-linker `egrep "ld-linux-ia64.so" \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld-linux-ia64.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
115 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
ebd6fc29 JW |
116 | ;; |
117 | ||
41c49998 TW |
118 | ia64-*-aix*) |
119 | HOSTING_CRT0='-dynamic-linker `egrep "libc.so" \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/libc.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' | |
120 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
121 | NATIVE_LIB_DIRS=/usr/lib/ia64l64 | |
122 | ;; | |
123 | ||
252b5132 RH |
124 | mips*-dec-bsd*) |
125 | HOSTING_CRT0=/usr/lib/crt0.o | |
126 | ;; | |
127 | ||
128 | mips*-sgi-irix4*) | |
129 | HOSTING_CRT0=/usr/lib/crt1.o | |
cd5d26f2 | 130 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o' |
252b5132 RH |
131 | ;; |
132 | ||
88659ef5 | 133 | mips*-sgi-irix5*) |
252b5132 | 134 | HOSTING_CRT0=/usr/lib/crt1.o |
cd5d26f2 | 135 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o' |
252b5132 RH |
136 | ;; |
137 | ||
88659ef5 | 138 | mips*-sgi-irix6*) |
cd5d26f2 AS |
139 | HOSTING_CRT0='/usr/lib32/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o ; else ${CC} -print-file-name=crtbegin.o; fi`' |
140 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L/usr/lib32 -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o ; else ${CC} -print-file-name=crtend.o; fi` /usr/lib32/crtn.o -init __do_global_ctors -fini __do_global_dtors' | |
88659ef5 MM |
141 | ;; |
142 | ||
d7498c1e ILT |
143 | mips*-*-linux-gnu*) |
144 | HOSTING_CRT0='-dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' | |
145 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
146 | ;; | |
147 | ||
252b5132 RH |
148 | m68*-*-linux*aout*) |
149 | HOSTING_CRT0=/usr/lib/crt0.o | |
150 | ;; | |
151 | ||
152 | m68*-*-linux*libc1*) | |
cd5d26f2 AS |
153 | HOSTING_CRT0='-dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; elif [ -f /usr/lib/crtbegin.o ]; then echo /usr/lib/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
154 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; elif [ -f /usr/lib/crtend.o ]; then echo /usr/lib/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
252b5132 RH |
155 | ;; |
156 | ||
157 | m68*-*-linux-gnu*) | |
cd5d26f2 AS |
158 | HOSTING_CRT0='-dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
159 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
252b5132 RH |
160 | ;; |
161 | ||
162 | m68*-*-lynxos*) | |
163 | HOSTING_CRT0=/lib/init1.o | |
cd5d26f2 | 164 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc -lm /lib/initn.o' |
252b5132 RH |
165 | ;; |
166 | ||
167 | m68*-motorola-sysv) | |
cd5d26f2 AS |
168 | HOSTING_CRT0='`if [ -f ../gcc/crt0.o ]; then echo ../gcc/crt0.o; elif [ -f \`${CC} -print-file-name=\`crt0.o ]; then echo \`${CC} -print-file-name=\`crt0.o; else echo /lib/crt0.o; fi`' |
169 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc881 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`' | |
252b5132 RH |
170 | ;; |
171 | ||
172 | m68*-sun-*) | |
173 | HOSTING_CRT0='/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o' | |
174 | ;; | |
175 | ||
176 | m88*-*-dgux*) | |
177 | HDEFINES=-D__using_DGUX | |
178 | HOSTING_CRT0='/lib/crt0.o -X' | |
179 | HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a | |
180 | ;; | |
181 | ||
182 | m88*-motorola-sysv3) | |
cd5d26f2 AS |
183 | HOSTING_CRT0='/lib/crt0.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
184 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`' | |
252b5132 RH |
185 | ;; |
186 | ||
187 | powerpc*-*-linux-gnu*) | |
cd5d26f2 AS |
188 | HOSTING_CRT0='-dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
189 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
252b5132 RH |
190 | ;; |
191 | ||
3277f888 AM |
192 | s390x-*-linux-gnu*) |
193 | HOSTING_CRT0='-dynamic-linker /lib/ld64.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; elif [ -f /usr/lib/crtbegin.o ]; then echo /usr/lib/crtbegin.o; else gcc --print-file-name=crtbegin.o; fi`' | |
a85d7ed0 NC |
194 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; elif [ -f /usr/lib/crtend.o ]; then echo /usr/lib/crtend.o; else gcc --print-file-name=crtend.o; fi` /usr/lib/crtn.o' |
195 | ;; | |
196 | ||
3277f888 | 197 | s390-*-linux-gnu*) |
a85d7ed0 NC |
198 | HOSTING_CRT0='-dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; elif [ -f /usr/lib/crtbegin.o ]; then echo /usr/lib/crtbegin.o; else gcc --print-file-name=crtbegin.o; fi`' |
199 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; elif [ -f /usr/lib/crtend.o ]; then echo /usr/lib/crtend.o; else gcc --print-file-name=crtend.o; fi` /usr/lib/crtn.o' | |
200 | ;; | |
201 | ||
252b5132 | 202 | sparc*-*-solaris2*) |
cd5d26f2 AS |
203 | HOSTING_CRT0='`if [ -f ../gcc/crt1.o ]; then echo ../gcc/crt1.o; else ${CC} -print-file-name=crt1.o; fi` `if [ -f ../gcc/crti.o ]; then echo ../gcc/crti.o; else ${CC} -print-file-name=crti.o; fi` /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} -print-file-name=crtbegin.o; fi`' |
204 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else ${CC} -print-file-name=crtn.o; fi`' | |
252b5132 RH |
205 | NATIVE_LIB_DIRS=/usr/ccs/lib |
206 | ;; | |
207 | ||
ae97059c | 208 | sparc-*-linux-gnu*) |
cd5d26f2 AS |
209 | HOSTING_CRT0='-dynamic-linker /lib/ld-linux.so.2 `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
210 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
ae97059c ILT |
211 | ;; |
212 | ||
213 | sparc64-*-linux-gnu*) | |
cd5d26f2 AS |
214 | HOSTING_CRT0='-dynamic-linker /lib64/ld-linux.so.2 `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`' |
215 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' | |
ae97059c ILT |
216 | ;; |
217 | ||
a842aceb DB |
218 | # |
219 | # Generic configurations: | |
220 | # | |
221 | ||
222 | *-*-freebsd*) | |
223 | NATIVE_LIB_DIRS=/usr/lib | |
224 | # Older versions of gcc do not use a specs file. In those cases, | |
225 | # gcc -print-file-name=specs will simply print specs. We create a | |
226 | # dummy specs files to handle this. | |
227 | echo "-dynamic-linker `${CC} --print-file-name=ld-elf.so.1`" > specs | |
228 | HOSTING_CRT0='-dynamic-linker `${CC} --print-file-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`' | |
229 | HOSTING_LIBS='`${CC} -print-libgcc-file-name` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `${CC} -print-libgcc-file-name` `${CC} --print-file-name=crtend.o` `${CC} --print-file-name=crtn.o`' | |
230 | ;; | |
231 | ||
232 | alpha*-*-*) | |
233 | HOSTING_CRT0=/usr/ccs/lib/crt0.o | |
234 | NATIVE_LIB_DIRS=/usr/ccs/lib | |
235 | ;; | |
236 | ||
237 | romp-*-*) | |
238 | HDEFINES=-DNO_VARARGS | |
239 | ;; | |
240 | ||
252b5132 | 241 | esac |