From 27f0dff4a2ddec42768683c8a79dbff0bcf6dec5 Mon Sep 17 00:00:00 2001
From: James E Wilson <wilson@specifixinc.com>
Date: Wed, 23 Feb 2005 22:30:01 +0000
Subject: [PATCH] Fix problem found by CFLAGS=-fmudflap build.

* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.

From-SVN: r95475
---
 fixincludes/ChangeLog   | 4 ++++
 fixincludes/Makefile.in | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 9262818e9fdd..03b55917f102 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-23  James E Wilson  <wilson@specifixinc.com>
+
+	* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.
+
 2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>
 
 	PR 18458
diff --git a/fixincludes/Makefile.in b/fixincludes/Makefile.in
index b60665bc4bf8..1383ef61b61a 100644
--- a/fixincludes/Makefile.in
+++ b/fixincludes/Makefile.in
@@ -102,15 +102,15 @@ oneprocess : full-stamp
 twoprocess : test-stamp $(AF)
 
 full-stamp : $(ALLOBJ) $(LIBIBERTY)
-	$(CC) $(LDFLAGS) -o $(FI) $(ALLOBJ) $(LIBIBERTY)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $(FI) $(ALLOBJ) $(LIBIBERTY)
 	$(STAMP) $@
 
 test-stamp : $(TESTOBJ) $(LIBIBERTY)
-	$(CC) $(LDFLAGS) -o $(FI) $(TESTOBJ) $(LIBIBERTY)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $(FI) $(TESTOBJ) $(LIBIBERTY)
 	$(STAMP) $@
 
 $(AF): $(FIXOBJ) $(LIBIBERTY)
-	$(CC) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBIBERTY)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBIBERTY)
 
 $(ALLOBJ)   : $(HDR)
 fixincl.o   : fixincl.c  $(srcdir)/fixincl.x
-- 
GitLab