Is there an easy way to check if there are certain flags set in CFLAGS
and do something in an ebuild ?
Thanks,
Alan.
03-04-2010, 03:31 PM
Fabian Groffen
CFLAGS checking
On 04-03-2010 16:17:28 +0000, Alan Hourihane wrote:
> Is there an easy way to check if there are certain flags set in CFLAGS
> and do something in an ebuild ?
flag-o-matic eclass, is-flag:
# @DESCRIPTION:
# Echo's "true" if flag is set in {C,CXX,F,FC}FLAGS. Accepts shell
# globs.
--
Fabian Groffen
Gentoo on a different level
03-04-2010, 03:43 PM
Alan Hourihane
CFLAGS checking
On Thu, 2010-03-04 at 17:31 +0100, Fabian Groffen wrote:
> On 04-03-2010 16:17:28 +0000, Alan Hourihane wrote:
> > Is there an easy way to check if there are certain flags set in CFLAGS
> > and do something in an ebuild ?
>
> flag-o-matic eclass, is-flag:
> # @DESCRIPTION:
> # Echo's "true" if flag is set in {C,CXX,F,FC}FLAGS. Accepts shell
> # globs.