This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] Pass BOOT_CFLAGS down to 'make {re,clean}strap'


While experimenting with -funit-at-a-time, I noticed that make restrap was ignoring BOOT_CFLAGS.

This simple patch allows BOOT_CFLAGS to be passed down during make restrap and make cleanstrap.

Tested with 'make BOOT_CFLAGS="-O3 -g" restrap' under i686-pc-cygwin.

OK to install?
Kelley Cook

2003-08-09  Kelley Cook  <kelleycook@wideopenwest.com>

	* Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
	(restrap): Likewise.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1136
diff -u -r1.1136 Makefile.in
--- Makefile.in	5 Aug 2003 19:23:10 -0000	1.1136
+++ Makefile.in	9 Aug 2003 19:32:07 -0000
@@ -3678,7 +3678,7 @@

 cleanstrap:
 	-$(MAKE) clean
-	$(MAKE) LANGUAGES="$(LANGUAGES)" bootstrap
+	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" bootstrap

 unstrap:
 	-rm -rf stage[234]*
@@ -3689,7 +3689,7 @@
 # not from scratch.
 restrap:
 	$(MAKE) unstrap
-	$(MAKE) LANGUAGES="$(LANGUAGES)" bootstrap
+	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" bootstrap

 # Compare the object files in the current directory with those in the
 # stage2 directory.




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