This is the mail archive of the automake@gnu.org mailing list for the automake project.


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

Re: 'DATA' is an anachronism


>>>>> "David" == David Carter <david@carter.net> writes:

>>> Don't do this.  Use AM_CXXFLAGS instead.

>>> Actually, I would remove `-g -O3' entirely, and only use -Wall if
>>> configure detected gcc.

David> When I used AM_CXXFLAGS, I ended up with two sets of "-g
David> -O{2,3}" in the compiler invocation. It seems the -O2 set must
David> be coming from CFLAGS in the environment? What is the
David> interaction between CFLAGS/CXXFLAGS/AM_C(XX)FLAGS?

Both CXXFLAGS and AM_CXXFLAGS are passed to compilations.
(Actually, sometimes AM_CXXFLAGS is not, but that only happens when
using per-exe flags; see the manual.)

configure defaults CXXFLAGS to `-g -O2'.  See the autoconf manual.

Tom


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