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: IO speed slipping again?


Benjamin Kosnik writes:
 > 
 > >In my case, it turns out that the library was not being built with
 > >optimization on.  When I set it to -O2, the times went back down
 > >again.  I still don't know why it's not using optimization in the
 > >builds, though.
 > 
 > (What is CXXFLAGS set to?)

How do I get the CXXFLAGS value during build?

Normally, I update the libstdc++-v3 dir (to avoid rebuilding the whole
compiler), then in the build subdir build/i686-pc-linux-gnu/libstdc++-v3:

./config.status
make clean
make install

During compilation, I'm not seeing -O2 -g in the compile commands.

If I build with

make CXXFLAGS="-O2 -g", then I get what I expect.


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