[Mesa-dev] [PATCH 2/2] automake: Remove OPT_FLAGS.

Eric Anholt eric at anholt.net
Thu Jul 26 15:29:21 PDT 2012

Marek Olšák <maraeo at gmail.com> writes:

> Michel Dänzer told me on IRC that setting CFLAGS overrode all flags,
> while OPT_FLAGS was only appended to existing CFLAGS, which is the
> reason I have been using OPT_FLAGS. Is that not true anymore?

By default, configure's CFLAGS and CXXFLAGS are "-g -O2" on gcc and
"-O2" on non-gcc.  I know of no reason why setting the two to something
else in the ./configure environment (like I do to add
-fno-omit-frame-pointer or -m32 on all projects I build) would be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120726/168f0ef3/attachment.pgp>

More information about the mesa-dev mailing list