Andreas K. Huettel posted on Sun, 22 Jun 2014 11:41:01 +0200 as excerpted:

> Also people familiar with Perl have voiced doubts if we should meddle
> with the perl-module CFLAGS and LDFLAGS at all, maybe making these
> changes conditional on something like I_KNOW_WHAT_I_AM_DOING. Hoping for
> comments.

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.

(FWIW I have USE=custom-cflags set globally, but package.use-disabled it 
for firefox when firefox-28 or so decided it didn't like the ones I was 
using.  At some point I'll probably go back and figure out which one it 
is and filter it specifically, but unsetting that USE flag was both a 
useful first-step debug and a reasonable quick fix for the time being.)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


Reply via email to