aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@canuck.cygnus.com>1997-10-10 20:48:55 +0000
committerDoug Evans <dje@gnu.org>1997-10-10 20:48:55 +0000
commitdec883836b9d119cab6c2f935512a682045d137c (patch)
tree7722478f4d9b2ffe9f09382ebf87e00e52bbfd3f
parent7ac63bcadb511dd552b7ce6b31dad203eea4971e (diff)
downloadgcc-dec883836b9d119cab6c2f935512a682045d137c.zip
gcc-dec883836b9d119cab6c2f935512a682045d137c.tar.gz
gcc-dec883836b9d119cab6c2f935512a682045d137c.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/Makefile.in3
-rwxr-xr-xgcc/configure11
-rw-r--r--gcc/configure.in10
4 files changed, 30 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 347497d..d4c5d7da 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index a9adf6f..47b4163 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 8f0f654..4d25600 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 88a5f76..4cc80d2 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=