Unoptimized compilation in src - bug or intentional?

Brian Dessent brian@dessent.net
Wed Jun 27 09:58:00 GMT 2007


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



More information about the Libstdc++ mailing list