* configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after apparent
[deliverable/binutils-gdb.git] / ld / configure.tgt
index ffa735c89e5bc9bd6a4132d87e5e588ccb2b66cc..42c997fe51d7b9e9ee740774878cb0b2705381ae 100644 (file)
@@ -9,6 +9,8 @@
 #  targ_extra_emuls    additional linker emulations to provide
 #  targ_extra_libpath  additional linker emulations using LIB_PATH
 #  targ_extra_ofiles   additional objects needed by the emulation
+#  NATIVE_LIB_DIRS     library directories to search on this host
+#                      (if we are a native or sysrooted linker)
 
 targ_extra_emuls=
 targ_extra_ofiles=
@@ -133,6 +135,7 @@ i[3456]86-*-coff)   targ_emul=i386coff ;;
 i[3456]86-*-rtemscoff*) targ_emul=i386coff ;;
 i[3456]86-*-rtemself*)  targ_emul=elf_i386 ;;
 i[3456]86-*-rtems*)     targ_emul=elf_i386 ;;
+i[3456]86-*-aros*)      targ_emul=elf_i386 ;;
 i[3456]86-*-bsd)       targ_emul=i386bsd ;;
 i[3456]86-*-bsd386)    targ_emul=i386bsd ;;
 i[3456]86-*-bsdi*)     targ_emul=i386bsd ;;
@@ -186,6 +189,7 @@ x86_64-*-netbsd*)   targ_emul=elf_x86_64
                        ;;
 i[3456]86-*-netware)   targ_emul=i386nw ;;
 i[3456]86-*-elf*)      targ_emul=elf_i386 ;;
+i[3456]86-*-kaos*)     targ_emul=elf_i386 ;;
 i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
                        targ_emul=i386bsd ;;
 i[3456]86-*-freebsd*)  targ_emul=elf_i386_fbsd
@@ -206,7 +210,8 @@ i[3456]86-*-winnt*) targ_emul=i386pe ;
 i[3456]86-*-pe)                targ_emul=i386pe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 i[3456]86-*-cygwin*)   targ_emul=i386pe ;
-                       targ_extra_ofiles="deffilep.o pe-dll.o" ;;
+                       targ_extra_ofiles="deffilep.o pe-dll.o"
+                       test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' ;;
 i[3456]86-*-mingw32*)  targ_emul=i386pe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 i[3456]86-*-interix*)  targ_emul=i386pe_posix;
@@ -232,10 +237,11 @@ arm-*-netbsdelf*) targ_emul=armelf_nbsd;
                        targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;;
 arm-*-netbsd*)         targ_emul=armnbsd;
                        targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd"  ;;
-arm-**-nto*)           targ_emul=armnto ;;
+arm-*-nto*)            targ_emul=armnto ;;
 arm-*-openbsd*)                targ_emul=armnbsd ;;
 arm-*-rtems*)          targ_emul=armelf ;;
 arm-*-elf)             targ_emul=armelf ;;
+arm-*-kaos*)           targ_emul=armelf ;;
 arm9e-*-elf)           targ_emul=armelf ;;
 arm-*-oabi)            targ_emul=armelf_oabi ;;
 arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
@@ -244,6 +250,7 @@ arm*-*-conix*)              targ_emul=armelf ;;
 thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
 strongarm-*-coff)      targ_emul=armcoff ;;
 strongarm-*-elf)       targ_emul=armelf ;;
+strongarm-*-kaos*)     targ_emul=armelf ;;
 thumb-*-coff)          targ_emul=armcoff ;;
 thumb-*-elf)           targ_emul=armelf ;;
 thumb-*-oabi)           targ_emul=armelf_oabi ;;
@@ -260,7 +267,7 @@ h8300-*-elf*)
                        targ_emul=h8300elf;
                        targ_extra_emuls="h8300helf h8300self"
                        ;;
-h8500-*-hms* | h8500-*-coff*)
+h8500-*-hms* | h8500-*-coff* | h8500-*-rtems*)
                        targ_emul=h8500
                        targ_extra_emuls="h8500s h8500b h8500m h8500c"
                        ;;
@@ -269,6 +276,13 @@ sh-*-linux*)
                        targ_extra_emuls=shelf_linux
                        targ_extra_libpath=shelf_linux
                        ;;
+sh64eb-*-linux*)       targ_emul=shelf32_linux
+                       targ_extra_emuls="shlelf32_linux"
+                       ;;
+sh64-*-linux*)         targ_emul=shlelf32_linux
+                       targ_extra_emuls="shelf32_linux"
+                       targ_extra_libpath=shelf32_linux
+                       ;;
 sh*eb-*-linux*)
                        targ_emul=shelf_linux
                        ;;
@@ -299,14 +313,17 @@ sh*-*-netbsdelf*)
                        targ_emul=shelf_nbsd
                        targ_extra_emuls=shlelf_nbsd
                        ;;
-shle*-*-elf* | sh[1234]*le*-*-elf)
+shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
                        targ_emul=shlelf
                        targ_extra_emuls="shelf shl sh"
                        ;;
-sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself*)
+sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself* | sh-*-kaos*)
                        targ_emul=shelf
                        targ_extra_emuls="shlelf sh shl"
                        ;;
+sh-*-nto*)             targ_emul=shelf_nto
+                       targ_extra_emuls=shlelf_nto
+                       ;;
 sh-*-pe)               targ_emul=shpe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 sh-*-*|sh-*-rtems*)    targ_emul=sh; targ_extra_emuls=shl ;;
@@ -411,6 +428,8 @@ mmix-*-*)           targ_emul=mmo
                        ;;
 mn10200-*-*)           targ_emul=mn10200 ;;
 mn10300-*-*)           targ_emul=mn10300 ;;
+msp430-*-*)             targ_emul=msp430x149
+                        targ_extra_emuls="msp430x148 msp430x147 msp430x133 msp430x135 msp430x110 msp430x112 msp430x122 msp430x123 msp430x412 msp430x413 msp430x311 msp430x312 msp430x313 msp430x314 msp430x315 msp430x323 msp430x325 msp430x336 msp430x337 msp430x1101 msp430x1111 msp430x1121 msp430x1331 msp430x1351 msp430x435 msp430x436 msp430x437 msp430x447 msp430x448 msp430x449 msp430x1222 msp430x1232 msp430x169 msp430x168 msp430x167 msp430x155  msp430x156 msp430x157 msp430x1122 msp430x1132" ;;
 alpha*-*-freebsd*)     targ_emul=elf64alpha_fbsd
                        targ_extra_emuls="elf64alpha alpha"
                        tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
@@ -468,7 +487,7 @@ powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \
                targ_extra_emuls="elf32ppcsim" ;;
        esac ;;
 powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
-  | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks*)
+  | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks* | powerpc*-*-kaos*)
        case "${targ}" in
        *64*)   targ_emul=elf64ppc
                targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
@@ -494,12 +513,14 @@ powerpc-*-windiss*)       targ_emul=elf32ppcwindiss ;;
 rs6000-*-aix5*)                targ_emul=aix5rs6 ;;
 rs6000-*-aix*)         targ_emul=aixrs6 ;;
 tic30-*-*aout*)                targ_emul=tic30aout ;;
-tic30-*-*coff*)                targ_emul=tic30coff ;;
+tic30-*-*coff*)                targ_emul=tic30coff ; targ_extra_emuls="tic3xcoff tic3xcoff_onchip" ;;
+tic4x-*-* | c4x-*-*)    targ_emul=tic4xcoff ;;
 tic54x-*-* | c54x*-*-*)        targ_emul=tic54xcoff ;;
 tic80-*-*)             targ_emul=tic80coff ;;
 v850-*-*)              targ_emul=v850 ;;
 v850e-*-*)             targ_emul=v850 ;;
 v850ea-*-*)            targ_emul=v850 ;;
+iq2000-*-elf)           targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" ;;
 frv-*-*)               targ_emul=elf32frv ;;
 w65-*-*)               targ_emul=w65 ;;
 xstormy16-*-*)         targ_emul=elf32xstormy16 ;;
@@ -507,8 +528,16 @@ fr30-*-*)          targ_emul=elf32fr30 ;;
 mcore-*-pe)            targ_emul=mcorepe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 mcore-*-elf)           targ_emul=elf32mcore ;;
-s390x-*-linux*)         targ_emul=elf64_s390 ;;
-s390-*-linux*)          targ_emul=elf_s390 ;;
+s390x-*-linux*)         targ_emul=elf64_s390
+                       targ_extra_emuls=elf_s390
+                       targ_extra_libpath=$targ_extra_emuls
+                       tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
+s390-*-linux*)          targ_emul=elf_s390
+                       if test "${want64}" = "true"; then
+                         targ_extra_emuls=elf64_s390
+                         targ_extra_libpath=$targ_extra_emuls
+                         tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
+                       fi ;;
 *-*-ieee*)             targ_emul=vanilla ;;
 ip2k-*-elf)            targ_emul=elf32ip2k ;;
 
@@ -518,3 +547,53 @@ ip2k-*-elf)                targ_emul=elf32ip2k ;;
   exit 1
 
 esac
+
+NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib'
+case "${target}" in
+
+*-*-freebsd*)
+  NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
+  ;;
+
+hppa*64*-*-hpux11*)
+  NATIVE_LIB_DIRS=/usr/lib/pa20_64
+  ;;
+
+i[3456]86-*-sysv4*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[3456]86-*-solaris*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[3456]86-pc-interix*)
+  NATIVE_LIB_DIRS='/usr/local/lib $$INTERIX_ROOT/usr/lib /lib /usr/lib'
+  ;;
+
+ia64-*-aix*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/lib/ia64l64 /lib /usr/lib'
+  ;;
+
+sparc*-*-solaris2*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[03-9x]86-*-cygwin*)
+  NATIVE_LIB_DIRS='/usr/lib /usr/lib/w32api'
+  ;;
+
+*-*-linux*)
+  ;;
+
+*-*-freebsd*)
+  ;;
+
+*-*-netbsd*)
+  ;;
+
+alpha*-*-*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+esac
This page took 0.025207 seconds and 4 git commands to generate.