Getting the entire configure.cflags variable
larryv at macports.org
Thu Oct 2 16:34:09 PDT 2014
On Oct 2, 2014, at 6:13 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Oct 2, 2014, at 4:29 PM, Lawrence Velázquez wrote:
>> For my part, when I implemented configure.cxx_stdlib, I was primarily thinking about preventing Portfiles from trashing the "-stdlib" argument. Augmenting configure.cxxflags seemed preferable to arcane Tcl sorcery.
> But that's just it. The -stdlib arg *isn't* appended to configure.cxxflags; it's added to the CXXFLAGS environment variable in configure_main; ports have no opportunity to inspect or modify this value. I had to manually add code to the pure portgroup to handle configure.cxx_stdlib because of this. Any port which sets "use_configure no" because it does not use a standard build system like autotools or cmake will be similarly affected.
Sorry, I said "augment" instead of "append to" intentionally, to differentiate between actually changing configure.cxxflags and augmenting it before setting CXXFLAGS.
More information about the macports-dev