* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.

This commit is contained in:
DJ Delorie 2002-06-12 15:04:45 +00:00
parent da086d020c
commit 2e1c9cc889
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
* configure.in (vax-*-netbsd*): Re-enable gas.

View File

@ -100,7 +100,11 @@ CXXFLAGS = -g -O2
LDFLAGS =
LIBCFLAGS = $(CFLAGS)
CFLAGS_FOR_BUILD = $(CFLAGS)
CFLAGS_FOR_TARGET = $(CFLAGS)
# During gcc bootstrap, if we use some random cc for stage1 then
# CFLAGS will be just -g. We want to ensure that TARGET libraries
# (which we know are built with gcc) are built with optimizations so
# prepend -O2 when setting CFLAGS_FOR_TARGET.
CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
LDFLAGS_FOR_TARGET =
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
PICFLAG =