This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix bfd/doc for canadian cross compile.


We shouldn't use $(CFLAGS) with $(CC_FOR_BUILD). It doesn't work when
$(CC) != $(CC_FOR_BUILD).


H.J.
----
2002-12-15  H.J. Lu <hjl@gnu.org>

	* Makefile.am (chew.o): Use $(CFLAGS_FOR_BUILD) instead of
	$(CFLAGS).
	* Makefile.in: Regenerated.

--- bfd/doc/Makefile.am.build	Wed Nov 20 09:35:41 2002
+++ bfd/doc/Makefile.am	Mon Dec 16 12:35:11 2002
@@ -58,7 +58,7 @@ $(MKDOC): chew.o
 	$(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
 
 chew.o: chew.c
-	$(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
+	$(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
 
 protos: libbfd.h libcoff.h bfd.h
 
--- bfd/doc/Makefile.in.build	Wed Nov 20 09:35:42 2002
+++ bfd/doc/Makefile.in	Mon Dec 16 12:36:14 2002
@@ -472,7 +472,7 @@ $(MKDOC): chew.o
 	$(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
 
 chew.o: chew.c
-	$(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
+	$(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
 
 protos: libbfd.h libcoff.h bfd.h
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]