From: Doug Evans Date: Fri, 10 Oct 1997 20:48:55 +0000 (+0000) Subject: configure.in: Handle --with-newlib. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dec883836b9d119cab6c2f935512a682045d137c;p=gcc.git configure.in: Handle --with-newlib. * configure.in: Handle --with-newlib. * Makefile.in (LIBGCC2_CFLAGS): Add @inhibit_libc@. * sparc/t-sp64 (LIBGCC2_CFLAGS): Delete. From-SVN: r15889 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 347497da5d8..d4c5d7da837 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Fri Oct 10 13:46:56 1997 Doug Evans + + * configure.in: Handle --with-newlib. + * Makefile.in (LIBGCC2_CFLAGS): Add @inhibit_libc@. + + * sparc/t-sp64 (LIBGCC2_CFLAGS): Delete. + Wed Oct 8 14:37:44 1997 Jeffrey A Law (law@cygnus.com) * config/ptx4.h: Fix typo. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a9adf6fe3a5..47b41638439 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -269,7 +269,8 @@ LIBGCC2 = libgcc2.a # we use this here because that should be enough, and also # so that -g1 will be tested. LIBGCC2_DEBUG_CFLAGS = -g1 -LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED +LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \ + @inhibit_libc@ # Additional options to use when compiling libgcc2.a. # Some targets override this to -Iinclude diff --git a/gcc/configure b/gcc/configure index 8f0f65444d2..4d256006ee4 100755 --- a/gcc/configure +++ b/gcc/configure @@ -4560,6 +4560,16 @@ if [ ! -f Makefile.in ]; then echo "source ${srcdir}/.gdbinit" >> .gdbinit fi +# 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 [ x$with_newlib = xyes ]; then + inhibit_libc=-Dinhibit_libc +fi + + # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. sched_prefix= sched_cflags= @@ -4825,6 +4835,7 @@ s%@SET_MAKE@%$SET_MAKE%g s%@CPP@%$CPP%g s%@manext@%$manext%g s%@objext@%$objext%g +s%@inhibit_libc@%$inhibit_libc%g s%@sched_prefix@%$sched_prefix%g s%@sched_cflags@%$sched_cflags%g s%@subdirs@%$subdirs%g diff --git a/gcc/configure.in b/gcc/configure.in index 88a5f763bff..4cc80d2f4a8 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -3045,6 +3045,16 @@ if [[ ! -f Makefile.in ]]; then echo "source ${srcdir}/.gdbinit" >> .gdbinit fi +# 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 [[ x$with_newlib = xyes ]]; then + inhibit_libc=-Dinhibit_libc +fi +AC_SUBST(inhibit_libc) + # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. sched_prefix= sched_cflags=