This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: 'DATA' is an anachronism
- To: "David Carter" <david at carter dot net>
- Subject: Re: 'DATA' is an anachronism
- From: Tom Tromey <tromey at redhat dot com>
- Date: 18 Aug 2001 16:15:06 -0600
- Cc: <automake at gnu dot org>
- List-Id: Discussion list for automake <automake.gnu.org>
- References: <000001c1278c$97e8b6c0$6401a8c0@atl.mediaone.net>
- Reply-To: tromey at redhat dot com
>>>>> "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