This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Unoptimized compilation in src - bug or intentional?
- From: Brian Dessent <brian at dessent dot net>
- To: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 26 Jun 2007 18:57:55 -0700
- Subject: Re: Unoptimized compilation in src - bug or intentional?
- References: <20070627002934.GW5690@sygehus.dk>
- Reply-to: libstdc++ at gcc dot gnu dot org
Rask Ingemann Lambertsen wrote:
> There's no -O2 anywhere when compiling in the src subdirectory. Is that
> intentional?
I'm not sure if this applies to your situation, but I have noticed that
the multilib infrastructure relies on the toplevel Makefile descending
into each target library to set CFLAGS/CXXFLAGS to the appropriate
values, thus if you run make directly in a target lib directory instead
of running it from the toplevel, you get empty CFLAGS and no
optimization. In that case instead try "make all-target-libstdc++-v3"
(or just all-target) from toplevel and let it recurse down into the
directory for you.
Brian