2007-09-10 Rask Ingemann Lambertsen <rask@sygehus.dk>

PR other/32154
* configure.ac: For libgloss targets, point the linker to the linker
script, startup code and simulator library.
* configure: Regenerate.
This commit is contained in:
DJ Delorie 2007-09-11 00:22:05 +00:00
parent 602c33ba46
commit 46093329c3
3 changed files with 89 additions and 20 deletions

View File

@ -1,3 +1,10 @@
2007-09-10 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR other/32154
* configure.ac: For libgloss targets, point the linker to the linker
script, startup code and simulator library.
* configure: Regenerate.
2007-09-09 Andrew Haley <aph@redhat.com> 2007-09-09 Andrew Haley <aph@redhat.com>
* configure.ac (noconfigdirs): Remove target-libffi and * configure.ac (noconfigdirs): Remove target-libffi and

51
configure vendored
View File

@ -2122,6 +2122,8 @@ if test x$enable_libgomp = x ; then
esac esac
fi fi
# Default libgloss CPU subdirectory.
libgloss_dir="$target_cpu"
case "${target}" in case "${target}" in
*-*-chorusos) *-*-chorusos)
@ -2228,6 +2230,7 @@ case "${target}" in
*) noconfigdirs="$noconfigdirs gdb readline" *) noconfigdirs="$noconfigdirs gdb readline"
;; ;;
esac esac
libgloss_dir=wince
;; ;;
arc-*-*) arc-*-*)
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
@ -2236,9 +2239,11 @@ case "${target}" in
;; ;;
arm-*-coff | strongarm-*-coff | xscale-*-coff) arm-*-coff | strongarm-*-coff | xscale-*-coff)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=arm
;; ;;
arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
noconfigdirs="$noconfigdirs target-libffi target-qthreads" noconfigdirs="$noconfigdirs target-libffi target-qthreads"
libgloss_dir=arm
;; ;;
arm*-*-linux-gnueabi) arm*-*-linux-gnueabi)
noconfigdirs="$noconfigdirs target-qthreads" noconfigdirs="$noconfigdirs target-qthreads"
@ -2246,9 +2251,11 @@ case "${target}" in
case ${with_newlib} in case ${with_newlib} in
no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
esac esac
libgloss_dir=arm
;; ;;
arm*-*-symbianelf*) arm*-*-symbianelf*)
noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
libgloss_dir=arm
;; ;;
arm-*-pe*) arm-*-pe*)
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
@ -2295,6 +2302,7 @@ case "${target}" in
unsupported_languages="$unsupported_languages fortran" unsupported_languages="$unsupported_languages fortran"
noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
esac esac
libgloss_dir=cris
;; ;;
crx-*-*) crx-*-*)
noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
@ -2305,6 +2313,9 @@ case "${target}" in
d30v-*-*) d30v-*-*)
noconfigdirs="$noconfigdirs ${libgcj} gdb" noconfigdirs="$noconfigdirs ${libgcj} gdb"
;; ;;
ep9312-*-elf | ep9312-*-coff)
libgloss_dir=arm
;;
fr30-*-elf*) fr30-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj} gdb" noconfigdirs="$noconfigdirs ${libgcj} gdb"
;; ;;
@ -2336,6 +2347,9 @@ case "${target}" in
hppa*-hp-hpux11*) hppa*-hp-hpux11*)
noconfigdirs="$noconfigdirs ld shellutils" noconfigdirs="$noconfigdirs ld shellutils"
;; ;;
hppa*-*-pro*)
libgloss_dir=pa
;;
hppa*-*-*) hppa*-*-*)
# According to Alexandre Oliva <aoliva@redhat.com>, libjava won't # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
# build on HP-UX 10.20. # build on HP-UX 10.20.
@ -2356,6 +2370,7 @@ case "${target}" in
;; ;;
i[3456789]86-*-coff | i[3456789]86-*-elf) i[3456789]86-*-coff | i[3456789]86-*-elf)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=i386
;; ;;
i[3456789]86-*-linux*) i[3456789]86-*-linux*)
# The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
@ -2425,6 +2440,7 @@ case "${target}" in
;; ;;
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
libgloss_dir=m68hc11
;; ;;
m68k-*-elf*) m68k-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
@ -2432,6 +2448,9 @@ case "${target}" in
m68k-*-coff*) m68k-*-coff*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
;; ;;
m68*-*-* | fido-*-*)
libgloss_dir=m68k
;;
mcore-*-pe*) mcore-*-pe*)
# The EPOC C++ environment does not support exceptions or rtti, # The EPOC C++ environment does not support exceptions or rtti,
# and so building libstdc++-v3 tends not to always work. # and so building libstdc++-v3 tends not to always work.
@ -2463,14 +2482,17 @@ case "${target}" in
# This is temporary until we can link against shared libraries # This is temporary until we can link against shared libraries
powerpcle-*-solaris*) powerpcle-*-solaris*)
noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
libgloss_dir=rs6000
;; ;;
powerpc-*-beos*) powerpc-*-beos*)
noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
;; ;;
powerpc-*-eabi) powerpc-*-eabi)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=rs6000
;; ;;
powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
libgloss_dir=rs6000
;; ;;
rs6000-*-lynxos*) rs6000-*-lynxos*)
noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
@ -2505,6 +2527,7 @@ case "${target}" in
;; ;;
mips*-*-*) mips*-*-*)
noconfigdirs="$noconfigdirs gprof ${libgcj}" noconfigdirs="$noconfigdirs gprof ${libgcj}"
libgloss_dir=mips
;; ;;
romp-*-*) romp-*-*)
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
@ -2518,14 +2541,19 @@ case "${target}" in
esac esac
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;; ;;
sparclet-*-aout* | sparc86x-*-*)
libgloss_dir=sparc
;;
sparc-*-elf*) sparc-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
;; ;;
sparc64-*-elf*) sparc64-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=sparc
;; ;;
sparclite-*-*) sparclite-*-*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=sparc
;; ;;
sparc-*-sunos4*) sparc-*-sunos4*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
@ -5789,6 +5817,19 @@ case " $target_configdirs " in
# for any libc-related directories first (so make it the last -B # for any libc-related directories first (so make it the last -B
# switch). # switch).
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
# If we're building libgloss, find the startup file, simulator library
# and linker script.
case " $target_configdirs " in
*" libgloss "*)
# Look for startup file, simulator library and maybe linker script.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
# Look for libnosys.a in case the target needs it.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
# Most targets have the linker script in the source directory.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
;;
esac
;; ;;
esac esac
;; ;;
@ -5822,16 +5863,6 @@ fi
# Search for other target-specific linker scripts and such. # Search for other target-specific linker scripts and such.
case "${target}" in case "${target}" in
m32c-*-* )
if test -d ${srcdir}/libgloss/m32c; then
# This is for crt0.o
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
# This is for r8c.ld
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
# This is for libnosys.a
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
fi
;;
mep*) mep*)
FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
;; ;;

View File

@ -398,6 +398,8 @@ if test x$enable_libgomp = x ; then
esac esac
fi fi
# Default libgloss CPU subdirectory.
libgloss_dir="$target_cpu"
case "${target}" in case "${target}" in
*-*-chorusos) *-*-chorusos)
@ -504,6 +506,7 @@ case "${target}" in
*) noconfigdirs="$noconfigdirs gdb readline" *) noconfigdirs="$noconfigdirs gdb readline"
;; ;;
esac esac
libgloss_dir=wince
;; ;;
arc-*-*) arc-*-*)
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
@ -512,9 +515,11 @@ case "${target}" in
;; ;;
arm-*-coff | strongarm-*-coff | xscale-*-coff) arm-*-coff | strongarm-*-coff | xscale-*-coff)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=arm
;; ;;
arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
noconfigdirs="$noconfigdirs target-libffi target-qthreads" noconfigdirs="$noconfigdirs target-libffi target-qthreads"
libgloss_dir=arm
;; ;;
arm*-*-linux-gnueabi) arm*-*-linux-gnueabi)
noconfigdirs="$noconfigdirs target-qthreads" noconfigdirs="$noconfigdirs target-qthreads"
@ -522,9 +527,11 @@ case "${target}" in
case ${with_newlib} in case ${with_newlib} in
no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
esac esac
libgloss_dir=arm
;; ;;
arm*-*-symbianelf*) arm*-*-symbianelf*)
noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
libgloss_dir=arm
;; ;;
arm-*-pe*) arm-*-pe*)
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
@ -571,6 +578,7 @@ case "${target}" in
unsupported_languages="$unsupported_languages fortran" unsupported_languages="$unsupported_languages fortran"
noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
esac esac
libgloss_dir=cris
;; ;;
crx-*-*) crx-*-*)
noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
@ -581,6 +589,9 @@ case "${target}" in
d30v-*-*) d30v-*-*)
noconfigdirs="$noconfigdirs ${libgcj} gdb" noconfigdirs="$noconfigdirs ${libgcj} gdb"
;; ;;
ep9312-*-elf | ep9312-*-coff)
libgloss_dir=arm
;;
fr30-*-elf*) fr30-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj} gdb" noconfigdirs="$noconfigdirs ${libgcj} gdb"
;; ;;
@ -612,6 +623,9 @@ case "${target}" in
hppa*-hp-hpux11*) hppa*-hp-hpux11*)
noconfigdirs="$noconfigdirs ld shellutils" noconfigdirs="$noconfigdirs ld shellutils"
;; ;;
hppa*-*-pro*)
libgloss_dir=pa
;;
hppa*-*-*) hppa*-*-*)
# According to Alexandre Oliva <aoliva@redhat.com>, libjava won't # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
# build on HP-UX 10.20. # build on HP-UX 10.20.
@ -632,6 +646,7 @@ case "${target}" in
;; ;;
i[[3456789]]86-*-coff | i[[3456789]]86-*-elf) i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=i386
;; ;;
i[[3456789]]86-*-linux*) i[[3456789]]86-*-linux*)
# The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
@ -701,6 +716,7 @@ case "${target}" in
;; ;;
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
libgloss_dir=m68hc11
;; ;;
m68k-*-elf*) m68k-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
@ -708,6 +724,9 @@ case "${target}" in
m68k-*-coff*) m68k-*-coff*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
;; ;;
m68*-*-* | fido-*-*)
libgloss_dir=m68k
;;
mcore-*-pe*) mcore-*-pe*)
# The EPOC C++ environment does not support exceptions or rtti, # The EPOC C++ environment does not support exceptions or rtti,
# and so building libstdc++-v3 tends not to always work. # and so building libstdc++-v3 tends not to always work.
@ -739,14 +758,17 @@ case "${target}" in
# This is temporary until we can link against shared libraries # This is temporary until we can link against shared libraries
powerpcle-*-solaris*) powerpcle-*-solaris*)
noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
libgloss_dir=rs6000
;; ;;
powerpc-*-beos*) powerpc-*-beos*)
noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
;; ;;
powerpc-*-eabi) powerpc-*-eabi)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=rs6000
;; ;;
powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
libgloss_dir=rs6000
;; ;;
rs6000-*-lynxos*) rs6000-*-lynxos*)
noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
@ -781,6 +803,7 @@ case "${target}" in
;; ;;
mips*-*-*) mips*-*-*)
noconfigdirs="$noconfigdirs gprof ${libgcj}" noconfigdirs="$noconfigdirs gprof ${libgcj}"
libgloss_dir=mips
;; ;;
romp-*-*) romp-*-*)
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
@ -794,14 +817,19 @@ case "${target}" in
esac esac
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;; ;;
sparclet-*-aout* | sparc86x-*-*)
libgloss_dir=sparc
;;
sparc-*-elf*) sparc-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
;; ;;
sparc64-*-elf*) sparc64-*-elf*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=sparc
;; ;;
sparclite-*-*) sparclite-*-*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
libgloss_dir=sparc
;; ;;
sparc-*-sunos4*) sparc-*-sunos4*)
noconfigdirs="$noconfigdirs ${libgcj}" noconfigdirs="$noconfigdirs ${libgcj}"
@ -2299,6 +2327,19 @@ case " $target_configdirs " in
# for any libc-related directories first (so make it the last -B # for any libc-related directories first (so make it the last -B
# switch). # switch).
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
# If we're building libgloss, find the startup file, simulator library
# and linker script.
case " $target_configdirs " in
*" libgloss "*)
# Look for startup file, simulator library and maybe linker script.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
# Look for libnosys.a in case the target needs it.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
# Most targets have the linker script in the source directory.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
;;
esac
;; ;;
esac esac
;; ;;
@ -2332,16 +2373,6 @@ fi
# Search for other target-specific linker scripts and such. # Search for other target-specific linker scripts and such.
case "${target}" in case "${target}" in
m32c-*-* )
if test -d ${srcdir}/libgloss/m32c; then
# This is for crt0.o
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
# This is for r8c.ld
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
# This is for libnosys.a
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
fi
;;
mep*) mep*)
FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
;; ;;