Gentoo Archives: gentoo-dev

From: George Shapovalov <george@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] interest assay: eclass for stripping "modern" C[XX]FLAGS
Date: Thu, 03 Jul 2003 08:45:39
Message-Id: 200307030143.38167.george@gentoo.org
In Reply to: Re: [gentoo-dev] interest assay: eclass for stripping "modern" C[XX]FLAGS by Mike Frysinger
1 On Wednesday 02 July 2003 20:25, Mike Frysinger wrote:
2 > On Wednesday 02 July 2003 23:11, George Shapovalov wrote:
3 > i think we already have a function that does this kind of thing ...
4 > see 'strip-flags' ... `man flag-o-matic` if you have a masked version of
5 > portage ;)
6 Nice try, but this does not cut it ;).
7 For one thing that function is gcc version agnostic. For example it will
8 permit certain -march combinations which are only supported by >=gcc-3*.
9 On the other hand it may be too restricitve in general, by only allowing flags
10 listed on some (very small) list.
11
12 The function (or alternatively two - three functions containing corresponding
13 gcc version in the name) to fit the bill perfectly should only strip
14 unsupported flags for the specified version, "correcting" them where
15 possible.
16 Thus, for example:
17 -march=i686 will be permitted, but
18 -march=pentium3 will get changed to -march=i686, and
19 -mfpmath=* will get stripped, etc.
20 while keeping other flags intact..
21
22 Of course in a very pedantic situation both function could be applied in turn
23 yielding converted and (then) stripped flags ..
24
25 George
26
27
28
29 --
30 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] interest assay: eclass for stripping "modern" C[XX]FLAGS David Holm <david@×××××××××××.com>