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


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



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