Patch for correct optimizations with GCC 2.95.3
|Reported by:||SF/keithscr||Owned by:||fingolfin|
GCC 2.95.3 will always use the last -O parameter
passed. Currently, when one runs configure with
--enable-release, -O2 is added to CXXFLAGS, but that
CXXFLAGS precedes the one in Makefile that explicitly
definies -O, so the -O overides the -O2. Might be a
better way to do this. I removed the -O from the
makefile, and just incorporated them into configure.
-g -O for debug, -O for --disable-debug, and -O2 for
--enabele-release (as it should be.
Ticket imported from: #1511980. Ticket imported from: patches/653.