From 1a4bf22fb1e7ce5e94a5dbb11c0e2e6d42d47ad7 Mon Sep 17 00:00:00 2001
From: Mumit Khan <khan@xraylith.wisc.edu>
Date: Tue, 26 May 1998 22:49:49 +0000
Subject: [PATCH] Makefile.in (gencheck.o): Use HOST_CC.

        * Makefile.in (gencheck.o): Use HOST_CC.
        * i386/t-mingw32: New file.
        * configure.in (i386-*-mingw32*): Use.

From-SVN: r20073
---
 gcc/ChangeLog             | 6 ++++++
 gcc/Makefile.in           | 3 +++
 gcc/config/i386/t-mingw32 | 4 ++++
 gcc/configure             | 2 +-
 gcc/configure.in          | 2 +-
 5 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 gcc/config/i386/t-mingw32

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cf3ba23ae09c..43415cc423d0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 26 23:47:52 1998  Mumit Khan <khan@xraylith.wisc.edu>
+
+	* Makefile.in (gencheck.o): Use HOST_CC.
+	* i386/t-mingw32: New file.
+	* configure.in (i386-*-mingw32*): Use.
+
 Tue May 26 07:31:04 1998  Richard Earnshaw (rearnsha@arm.com)
 
 	* arm.c (bad_signed_byte_operand): New predicate function.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index c12b19da99b9..2afcc225419c 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1325,6 +1325,9 @@ gencheck : gencheck.o tree.h tree.def $(HOST_LIBDEPS)
 	$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ \
 	 gencheck.o $(HOST_LIBS)
 
+gencheck.o : gencheck.c hconfig.h system.h
+	$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) $(srcdir)/gencheck.c
+
 dumpvers: dumpvers.c
 
 version.o: version.c
diff --git a/gcc/config/i386/t-mingw32 b/gcc/config/i386/t-mingw32
new file mode 100644
index 000000000000..fe948c6d15ec
--- /dev/null
+++ b/gcc/config/i386/t-mingw32
@@ -0,0 +1,4 @@
+#
+# collect2 doesn't work for i386-mingw32* yet.
+#
+USE_COLLECT2=
diff --git a/gcc/configure b/gcc/configure
index 23757416b8e4..7d584b8ee1cd 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -2964,7 +2964,7 @@ for machine in $build $host $target; do
 	i[34567]86-*-mingw32*)
 		tm_file=i386/mingw32.h
 		xm_file="${xm_file} i386/xm-mingw32.h"
-		tmake_file=i386/t-cygwin32
+		tmake_file="i386/t-cygwin32 i386/t-mingw32"
 		extra_objs=winnt.o
 		xmake_file=i386/x-cygwin32
 		fixincludes=Makefile.in
diff --git a/gcc/configure.in b/gcc/configure.in
index bb6b46c773e1..3d97e053d8db 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -1120,7 +1120,7 @@ for machine in $build $host $target; do
 	i[[34567]]86-*-mingw32*)
 		tm_file=i386/mingw32.h
 		xm_file="${xm_file} i386/xm-mingw32.h"
-		tmake_file=i386/t-cygwin32
+		tmake_file="i386/t-cygwin32 i386/t-mingw32"
 		extra_objs=winnt.o
 		xmake_file=i386/x-cygwin32
 		fixincludes=Makefile.in
-- 
GitLab