]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/configure.host
* configure.host (sparc-*-sunos64*): Remove.
[thirdparty/binutils-gdb.git] / ld / configure.host
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
20 alpha-*-*)
21 HOSTING_CRT0=/usr/ccs/lib/crt0.o
22 NATIVE_LIB_DIRS=/usr/ccs/lib
23 ;;
24
25 i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*)
26 # The new BSD `make' has a bug: it doesn't pass empty arguments in
27 # shell commands. So we need to make this value non-empty in order
28 # for the genscripts.sh call to work. There's nothing magic about
29 # the value `/lib'; it's just a dummy.
30 NATIVE_LIB_DIRS = /lib
31 ;;
32
33 i[345]86-*-go32*)
34 test -z "${CC}" && CC="i386-go32-gcc -O2 -fno-omit-frame-pointer -Wl,-S"
35 ;;
36
37 i[345]86-*-sysv4*)
38 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`'
39 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'
40 NATIVE_LIB_DIRS=/usr/ccs/lib
41 ;;
42
43 i[345]86-*-sysv*)
44 HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`'
45 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'
46 ;;
47
48 i[345]86-*-solaris*)
49 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`'
50 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`'
51 NATIVE_LIB_DIRS=/usr/ccs/lib
52 ;;
53
54 i[345]86-*-sco* | i[345]86-*-isc*)
55 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`'
56 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'
57 ;;
58
59 i[345]86-*-linux*)
60 HOSTING_CRT0=/usr/lib/crt0.o
61 ;;
62
63 i[345]86-*-lynxos*)
64 HOSTING_CRT0=/lib/init1.o
65 HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o'
66 ;;
67
68 mips-dec-bsd*)
69 HOSTING_CRT0=/usr/lib/crt0.o
70 ;;
71
72 mips-sgi-irix4*)
73 HOSTING_CRT0=/usr/lib/crt1.o
74 HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o'
75 ;;
76
77 m68*-*-lynxos*)
78 HOSTING_CRT0=/lib/init1.o
79 HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o'
80 ;;
81
82 m68*-sun-*)
83 HOSTING_CRT0='/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o'
84 ;;
85
86 m88*-*-dgux*)
87 HDEFINES = -D__using_DGUX
88 HOSTING_CRT0=/lib/crt0.o -X
89 HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a
90 ;;
91
92 romp-*-*)
93 HDEFINES=-DNO_VARARGS
94 CC=${CC-gcc}
95 ;;
96
97 sparc-*-solaris2*)
98 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`'
99 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`'
100 NATIVE_LIB_DIRS=/usr/ccs/lib
101 ;;
102
103 esac