Add crtbeginS.o and crtendS.o to configure.in, too.

This commit is contained in:
Oliver Tappe
2014-07-27 19:51:42 +02:00
parent 4947d64591
commit 937988f044

View File

@@ -306,10 +306,10 @@ AC_CANONICAL_SYSTEM
# Find the native compiler # Find the native compiler
AC_PROG_CC AC_PROG_CC
# If the native compiler is GCC, we can enable warnings even in stage1. # If the native compiler is GCC, we can enable warnings even in stage1.
# That's useful for people building cross-compilers, or just running a # That's useful for people building cross-compilers, or just running a
# quick `make'. # quick `make'.
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
stage1_warn_cflags='$(WARN_CFLAGS)' stage1_warn_cflags='$(WARN_CFLAGS)'
else else
stage1_warn_cflags="" stage1_warn_cflags=""
@@ -424,7 +424,7 @@ GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
AC_DECL_SYS_SIGLIST AC_DECL_SYS_SIGLIST
# mkdir takes a single argument on some systems. # mkdir takes a single argument on some systems.
GCC_FUNC_MKDIR_TAKES_ONE_ARG GCC_FUNC_MKDIR_TAKES_ONE_ARG
# File extensions # File extensions
@@ -528,7 +528,7 @@ changequote([,])dnl
tm_file=${cpu_type}/${cpu_type}.h tm_file=${cpu_type}/${cpu_type}.h
xm_file=${cpu_type}/xm-${cpu_type}.h xm_file=${cpu_type}/xm-${cpu_type}.h
# Common parts for linux-gnu and openbsd systems # Common parts for linux-gnu and openbsd systems
case $machine in case $machine in
*-*-linux-gnu*) *-*-linux-gnu*)
@@ -537,7 +537,7 @@ changequote([,])dnl
*-*-openbsd*) *-*-openbsd*)
tm_file=${cpu_type}/openbsd.h tm_file=${cpu_type}/openbsd.h
tmake_file="t-libc-ok t-openbsd" tmake_file="t-libc-ok t-openbsd"
# avoid surprises, always provide an xm-openbsd file # avoid surprises, always provide an xm-openbsd file
xm_file=${cpu_type}/xm-openbsd.h xm_file=${cpu_type}/xm-openbsd.h
# don't depend on processor x-fragments as well # don't depend on processor x-fragments as well
xmake_file=none xmake_file=none
@@ -650,7 +650,7 @@ changequote([,])dnl
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
tmake_file="alpha/t-ieee" tmake_file="alpha/t-ieee"
;; ;;
alpha*-dec-osf*) alpha*-dec-osf*)
if test x$stabs = xyes if test x$stabs = xyes
then then
@@ -809,7 +809,7 @@ changequote([,])dnl
arm*-*-ecos-elf) arm*-*-ecos-elf)
tm_file=arm/ecos-elf.h tm_file=arm/ecos-elf.h
tmake_file=arm/t-elf tmake_file=arm/t-elf
;; ;;
arm*-*-elf) arm*-*-elf)
tm_file=arm/unknown-elf.h tm_file=arm/unknown-elf.h
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
@@ -835,7 +835,7 @@ changequote([,])dnl
use_collect2=yes use_collect2=yes
;; ;;
c38-convex-*) c38-convex-*)
target_cpu_default=16 target_cpu_default=16
use_collect2=yes use_collect2=yes
;; ;;
c4x-*) c4x-*)
@@ -1182,7 +1182,7 @@ changequote([,])dnl
tm_file=i386/haiku.h tm_file=i386/haiku.h
xmake_file=i386/x-haiku xmake_file=i386/x-haiku
extra_objs=winnt.o extra_objs=winnt.o
extra_parts='crtbegin.o crtend.o' extra_parts='crtbegin.o crtbeginS.o crtend.o crtendS.o'
fixincludes=Makefile.in fixincludes=Makefile.in
float_format=i386 float_format=i386
;; ;;
@@ -1291,8 +1291,8 @@ changequote(,)dnl
i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
changequote([,])dnl # with ELF format using the changequote([,])dnl # with ELF format using the
# GNU/Linux C library 5 # GNU/Linux C library 5
xmake_file=x-linux xmake_file=x-linux
tm_file=i386/linux.h tm_file=i386/linux.h
tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes gnu_ld=yes
@@ -3425,7 +3425,7 @@ changequote([,])dnl
target_cpu_default2="MASK_CPU_EV5" target_cpu_default2="MASK_CPU_EV5"
;; ;;
esac esac
if test x$gas = xyes if test x$gas = xyes
then then
if test "$target_cpu_default2" = "" if test "$target_cpu_default2" = ""
@@ -3693,7 +3693,7 @@ null_defines=
host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
# If host=build, it is correct to have hconfig include auto-host.h # If host=build, it is correct to have hconfig include auto-host.h
# as well. If host!=build, we are in error and need to do more # as well. If host!=build, we are in error and need to do more
# work to find out the build config parameters. # work to find out the build config parameters.
if test x$host = x$build if test x$host = x$build
then then
@@ -3702,7 +3702,7 @@ else
# We create a subdir, then run autoconf in the subdir. # We create a subdir, then run autoconf in the subdir.
# To prevent recursion we set host and build for the new # To prevent recursion we set host and build for the new
# invocation of configure to the build for this invocation # invocation of configure to the build for this invocation
# of configure. # of configure.
tempdir=build.$$ tempdir=build.$$
rm -rf $tempdir rm -rf $tempdir
mkdir $tempdir mkdir $tempdir
@@ -4341,7 +4341,7 @@ fi
AC_SUBST(build_canonical) AC_SUBST(build_canonical)
AC_SUBST(host_canonical) AC_SUBST(host_canonical)
AC_SUBST(target_subdir) AC_SUBST(target_subdir)
# If this is using newlib, then define inhibit_libc in # If this is using newlib, then define inhibit_libc in
# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
# libgcc.a, but that's OK because newib should have its own version of # libgcc.a, but that's OK because newib should have its own version of