automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 'DATA' is an anachronism


From: David Carter
Subject: RE: 'DATA' is an anachronism
Date: Fri, 17 Aug 2001 22:22:01 -0400

Tom Tromey wrote:

>> David> CXXFLAGS      += -DDATA_DIR=$(pkgdatadir) -Wall -g -O3 

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

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

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

Thanks for the response!

-David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]