On Fri, 28 Apr 2017 19:10:42 -0700, Ian Zimmerman wrote:

> I'm trying to create an ebuild of a crufty old program that needs
> -fgnu89-inline in compiler flags to have any chance of building.
> 
> What's the way to do that in an ebuild?  I could have something like
> 
> src_configure() {
>     econf $(use_enable nls) CFLAGS=-fgnu89-inline
> }
> 
> but then, will this not _override_ (rather than add to, as desired) the
> CFLAGS from make.conf?

Use the flag-o-matic eclass, specifically the append-cflags function.


-- 
Neil Bothwick

Half of being smart is knowing what you're dumb at.

Attachment: pgpt3Z7MpvLhy.pgp
Description: OpenPGP digital signature

Reply via email to