Commit | Line | Data |
---|---|---|
36ea6198 ILT |
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 | # CC compiler to use (only if needed and not already set) | |
8 | # HDEFINES host specific compiler flags | |
9 | # HOSTING_CRT0 crt0.o file used for bootstrapping | |
10 | # HOSTING_LIBS libraries used for bootstrapping | |
11 | # NATIVE_LIB_DIRS library directories to search on this host | |
12 | ||
13 | HDEFINES= | |
14 | HOSTING_CRT0=/lib/crt0.o | |
15 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc' | |
16 | NATIVE_LIB_DIRS= | |
17 | ||
18 | case "${host}" in | |
19 | ||
02a5d235 ILT |
20 | alpha-*-linux*) |
21 | HOSTING_CRT0=/usr/lib/crt0.o | |
22 | ;; | |
23 | ||
36ea6198 ILT |
24 | alpha-*-*) |
25 | HOSTING_CRT0=/usr/ccs/lib/crt0.o | |
26 | NATIVE_LIB_DIRS=/usr/ccs/lib | |
27 | ;; | |
28 | ||
29 | i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*) | |
30 | # The new BSD `make' has a bug: it doesn't pass empty arguments in | |
31 | # shell commands. So we need to make this value non-empty in order | |
32 | # for the genscripts.sh call to work. There's nothing magic about | |
33 | # the value `/lib'; it's just a dummy. | |
02a5d235 | 34 | NATIVE_LIB_DIRS=/lib |
36ea6198 ILT |
35 | ;; |
36 | ||
37 | i[345]86-*-go32*) | |
38 | test -z "${CC}" && CC="i386-go32-gcc -O2 -fno-omit-frame-pointer -Wl,-S" | |
39 | ;; | |
40 | ||
41 | i[345]86-*-sysv4*) | |
42 | 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 gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' | |
43 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` /usr/ccs/lib/crtn.o' | |
44 | NATIVE_LIB_DIRS=/usr/ccs/lib | |
45 | ;; | |
46 | ||
673f5b9f ILT |
47 | i[345]86-sequent-ptx* | i[345]86-sequent-sysv*) |
48 | HOSTING_CRT0='/lib/crt0.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' | |
49 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi`' | |
50 | ;; | |
51 | ||
36ea6198 ILT |
52 | i[345]86-*-sysv*) |
53 | HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`' | |
54 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o' | |
55 | ;; | |
56 | ||
57 | i[345]86-*-solaris*) | |
58 | HOSTING_CRT0='`if [ -f ../gcc/crt1.o ]; then echo ../gcc/crt1.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crt1.o/'; fi` `if [ -f ../gcc/crti.o ]; then echo ../gcc/crti.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crti.o/'; fi` /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' | |
59 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtn.o/'; fi`' | |
60 | NATIVE_LIB_DIRS=/usr/ccs/lib | |
61 | ;; | |
62 | ||
63 | i[345]86-*-sco* | i[345]86-*-isc*) | |
64 | HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' | |
65 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` /lib/crtn.o' | |
66 | ;; | |
67 | ||
68 | i[345]86-*-linux*) | |
69 | HOSTING_CRT0=/usr/lib/crt0.o | |
70 | ;; | |
71 | ||
72 | i[345]86-*-lynxos*) | |
73 | HOSTING_CRT0=/lib/init1.o | |
74 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o' | |
75 | ;; | |
76 | ||
77 | mips-dec-bsd*) | |
78 | HOSTING_CRT0=/usr/lib/crt0.o | |
79 | ;; | |
80 | ||
81 | mips-sgi-irix4*) | |
82 | HOSTING_CRT0=/usr/lib/crt1.o | |
83 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o' | |
84 | ;; | |
85 | ||
86 | m68*-*-lynxos*) | |
87 | HOSTING_CRT0=/lib/init1.o | |
88 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o' | |
89 | ;; | |
90 | ||
91 | m68*-sun-*) | |
92 | HOSTING_CRT0='/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o' | |
93 | ;; | |
94 | ||
95 | m88*-*-dgux*) | |
02a5d235 | 96 | HDEFINES=-D__using_DGUX |
36ea6198 ILT |
97 | HOSTING_CRT0=/lib/crt0.o -X |
98 | HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a | |
99 | ;; | |
100 | ||
101 | romp-*-*) | |
102 | HDEFINES=-DNO_VARARGS | |
103 | CC=${CC-gcc} | |
104 | ;; | |
105 | ||
106 | sparc-*-solaris2*) | |
107 | HOSTING_CRT0='`if [ -f ../gcc/crt1.o ]; then echo ../gcc/crt1.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crt1.o/'; fi` `if [ -f ../gcc/crti.o ]; then echo ../gcc/crti.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crti.o/'; fi` /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`' | |
108 | HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtn.o/'; fi`' | |
109 | NATIVE_LIB_DIRS=/usr/ccs/lib | |
110 | ;; | |
111 | ||
112 | esac |