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 |