On 23 June 2014 01:02, Duncan <1i5t5.dun...@cox.net> wrote: > > The usual conditional for that is USE=custom-cflags or a similar variant > like custom-optimization. See the firefox ebuilds, which use both. > > $ equery -N u firefox | grep custom > - - custom-cflags : Build with user-specified CFLAGS (unsupported) > + + custom-optimization : Fine-tune custom compiler optimizations (-Os, > -O0, -O1, -O2, -O3) > > > Generally, such USE flags are discouraged in gentoo, where honoring a > user's CFLAGS, etc. and letting them keep the pieces if it comes to that > is the norm. Where upstream refuses to support custom cflags, however, > the USE flag solution seems to be an accepted at maintainer discretion.
The problem with a USE flag here as such is the change this eclass makes affects >900 packages in dev-perl/ , and its not easy to casually determine which of those packages have any C bits where CFLAGS are even meaningful. Which would mean having >900 packages with a new IUSE value that did nothing for a majority of them. -- Kent