diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 06:21:49 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 06:21:49 +0000 |
commit | 81aabcf8db73fa4da8acb672029ee3f092a404cd (patch) | |
tree | 315f01fa811aa3a76499355b642805651f2e4ef1 /gcc/configure.in | |
parent | a484e8dbbdf7c08aeaba6045c06600a572ff75c8 (diff) | |
download | gcc-81aabcf8db73fa4da8acb672029ee3f092a404cd.tar.gz |
* configure.in: Redefine inhibit_libc conditions.
* libgcc2.c: Remove inhibit_libc conditional define.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.in')
-rw-r--r-- | gcc/configure.in | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index d11584536cd..a821343544c 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -4236,6 +4236,24 @@ then cross_overrides="${topdir}/cross-make" fi +# If this is a cross-compiler that does not +# have its own set of headers then define +# inhibit_libc + +# If this is using newlib, then define inhibit_libc in +# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of +# libgcc.a, but that's OK because newlib should have its own version of +# assert.h. +inhibit_libc= +if [test x$host != x$target] && [test x$with_headers = x]; then + inhibit_libc=-Dinhibit_libc +else + if [test x$with_newlib = xyes]; then + inhibit_libc=-Dinhibit_libc + fi +fi +AC_SUBST(inhibit_libc) + # When building gcc with a cross-compiler, we need to fix a few things. # This must come after cross-make as we want all.build to override # all.cross. @@ -4855,16 +4873,6 @@ AC_SUBST(build_canonical) AC_SUBST(host_canonical) AC_SUBST(target_subdir) -# If this is using newlib, then define inhibit_libc in -# 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 -# assert.h. -inhibit_libc= -if test x$with_newlib = xyes; then - inhibit_libc=-Dinhibit_libc -fi -AC_SUBST(inhibit_libc) - # If $(exec_prefix) exists and is not the same as $(prefix), then compute an # absolute path for gcc_tooldir based on inserting the number of up-directory # movements required to get from $(exec_prefix) to $(prefix) into the basic |