[fdo-dev] AM_CXXFLAGS instead of CXXFLAGS

Greg Boone greg.boone at autodesk.com
Mon Aug 28 18:29:14 EDT 2006

This is a reasonable suggestion. Is the Makefile.am files the only
locations that would have to change?

-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net] 
Sent: Monday, August 28, 2006 6:00 PM
To: dev at fdo.osgeo.org
Subject: [fdo-dev] AM_CXXFLAGS instead of CXXFLAGS


I'd like to request for small change.
As I see, in almost all Makefile.am files CXXFLAGS variables are
set manually.

When user want's to customize these flags, automake throws:

Src/UnitTest/Makefile.am:196: `CXXFLAGS' is a user variable, you should
not override it;
Src/UnitTest/Makefile.am:196: use `AM_CXXFLAGS' instead.

Automake book says:

"These variables are considered user variables. Setting
them in `Makefile.am' is unsafe, because the user will
expect to be able to override them at will."

Following FAQ includes short explanation of it too:

Do you mind to change CXXFLAGS variable to AM_CXXFLAGS macro
(supported by automake >= 1.4) ?

Thanks in advance.
Mateusz Loskot

To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org

More information about the Fdo-internals mailing list