diff options
author | DJ Delorie <dj@redhat.com> | 2002-06-12 15:04:45 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-06-12 15:04:45 +0000 |
commit | 2e1c9cc889ec75925fc799e25ad4cc57405ecf06 (patch) | |
tree | 2a085747600037cc3954daf834996bd523d0830b /Makefile.in | |
parent | da086d020cc3fd5c0a374ca753dfb0bc62a3cda0 (diff) | |
download | newlib-2e1c9cc889ec75925fc799e25ad4cc57405ecf06.zip newlib-2e1c9cc889ec75925fc799e25ad4cc57405ecf06.tar.gz newlib-2e1c9cc889ec75925fc799e25ad4cc57405ecf06.tar.bz2 |
* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 9d3d677..4a76109 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 = |