Commit dec88383 by Doug Evans Committed by Doug Evans

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
parent 7ac63bca
Fri Oct 10 13:46:56 1997 Doug Evans <dje@canuck.cygnus.com>
* 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.
......
......@@ -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
......
......@@ -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
......
......@@ -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=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment