This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
mistake in gcc/Makefile.in
- From: Alexander Shchekaturov <Alexander_Shch at mail dot ru>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 18 Aug 2002 23:09:33 +0400
- Subject: mistake in gcc/Makefile.in
CFLAGS = -g
in gcc/Makefile.in *overrides* shell variable CFLAGS (on my i686-pc-linux-gnu
machine CFLAGS="-O2 -march=i686"), hence bootstrap process is going slowly
with debug and without optimizing compiler.
This fix works fine for me, but I'm not sure it is ideologically correct:
--- Makefile.in.orig Tue Aug 13 12:55:47 2002
+++ Makefile.in Sun Aug 18 22:47:27 2002
@@ -65,9 +65,9 @@
# TCFLAGS is used for compilations with the GCC just built.
XCFLAGS =
TCFLAGS =
-CFLAGS = -g
-STAGE1_CFLAGS = -g @stage1_cflags@
-BOOT_CFLAGS = -g -O2
+CFLAGS = @CFLAGS@
+STAGE1_CFLAGS = @CFLAGS@ @stage1_cflags@
+BOOT_CFLAGS = @CFLAGS@
# The warning flags are separate from BOOT_CFLAGS because people tend to
# override optimization flags and we'd like them to still have warnings
PS. This is my little contribution to "Faster compilation speed" brainstorming
:-)
Alexander_Shch.