public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] flag-o-matic eclass strip-unsupported-flags function
  @ 2003-08-05 20:30 99% ` Martin Schlemmer
  0 siblings, 0 replies; 1+ results
From: Martin Schlemmer @ 2003-08-05 20:30 UTC (permalink / raw
  To: Douglas Russell; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

On Tue, 2003-08-05 at 17:59, Douglas Russell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> While fixing a bug it came to my attention that when an ebuild may wish to 
> strip off CFLAGS known not to work, it will have to either strip off 
> unnecessarily large amounts of optimisations or run the risk of being 
> incompatible with different versions of gcc.
> 
> For example, if removing -finline-functions from -O3, the optimal result with 
> gcc 3 or greater is -O2 -frename-functions. However, gcc versions less than 3 
> have no -frename-functions and will hence fail. Either dropping all the way 
> down to -O2 unnecessarily on some systems or some conditional statements are 
> required. The latter is obviously desirable to maximise optimisations. 
> 
> Rather than have conditional statements for every possible connotation of gcc 
> in the ebuild however, I have written this addition to the flag-o-matic 
> eclass which basically queries gcc for each of the used optimisations and 
> strips the unsupported ones.
> 
> Attached is a patch for the flag-o-matic eclass. Any feedback or suggestions 
> would be appreciated.
> 

What about:

  CFLAGS="-O3 -fno-inline-functions"

rather ? =)


Cheers,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-08-05 15:59     [gentoo-dev] flag-o-matic eclass strip-unsupported-flags function Douglas Russell
2003-08-05 20:30 99% ` Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox