FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 03-04-2010, 03:17 PM
Alan Hourihane
 
Default CFLAGS checking

Is there an easy way to check if there are certain flags set in CFLAGS
and do something in an ebuild ?

Thanks,

Alan.
 
Old 03-04-2010, 03:31 PM
Fabian Groffen
 
Default 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
 
Old 03-04-2010, 03:43 PM
Alan Hourihane
 
Default 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.

Cool. Thanks Fabian !

Alan.
 

Thread Tools




All times are GMT. The time now is 11:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org