This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unoptimized compilation in src - bug or intentional?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]