Hi again,
While integrating the package in a project of mine, I noticed a strange way of
dealing with the CXXFLAGS variable. The problem I see there is that if I set
CXXFLAGS in the environment during the run of configure, I expect it to
override the CXXFLAGS (default) settings, pretty much the same way make does
treat variable definitions on the command line to have precedence over the
ones inside the makefile (unless you specify "override" explicitly). My
problem was mainly about my default optimization level being eventually
overridden by the defaults inside configure.ac .
Please take a look at the attached patch. The idea is to set those "default"
flags iff the CXXFLAGS variable wasn't set in the environment and to always
add the -fvisibility-hidden flag if needed *afterwards*.
--
I drive way too fast to worry about cholesterol.
|