configure.in: Handle --with-newlib.
authorDoug Evans <dje@canuck.cygnus.com>
Fri, 10 Oct 1997 20:48:55 +0000 (20:48 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 10 Oct 1997 20:48:55 +0000 (20:48 +0000)
* configure.in: Handle --with-newlib.
* Makefile.in (LIBGCC2_CFLAGS): Add @inhibit_libc@.

* sparc/t-sp64 (LIBGCC2_CFLAGS): Delete.

From-SVN: r15889

gcc/ChangeLog
gcc/Makefile.in
gcc/configure
gcc/configure.in

index 347497da5d8a8203ce788fa730db7c18cc2c12b7..d4c5d7da837410e9d7f5507d4c56ed1539021a75 100644 (file)
@@ -1,3 +1,10 @@
+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.
index a9adf6fe3a51cf308d724b9e98799a09707f98e3..47b4163843941390c5ff7d6df38f8dc32c60a599 100644 (file)
@@ -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
index 8f0f65444d21060ab0d4534754fe532e66ad5c7b..4d256006ee449506af415b64947b3ec9c7fac76a 100755 (executable)
@@ -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
index 88a5f763bff2a3e039b6c63db907db5820f53bc1..4cc80d2f4a80b62ec1aa2d0cc8b4ea63132a6875 100644 (file)
@@ -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=