1 |
"Kevin F. Quinn" <kevquinn@g.o> posted |
2 |
20061023162050.48b4e70f@×××××××××××××××××.com, excerpted below, on Mon, |
3 |
23 Oct 2006 16:20:50 +0200: |
4 |
|
5 |
> FWIW I think Simon meant: |
6 |
> |
7 |
> CFLAGS=" ${CFLAGS}" ; CFLAGS=${CFLAGS// -fremoved} |
8 |
> |
9 |
> assuming that adding the space was done to catch flags that match part |
10 |
> of longer flags. |
11 |
|
12 |
What about adding a space at each end, then testing for a space at each |
13 |
end of the removed,, but then you have to be sure and add one space back |
14 |
in so as not to concatenate two flags into one with the removal, so... |
15 |
|
16 |
CFLAGS=" ${CFLAGS} " ; CFLAGS=${CFLAGS// -fremoved/ /} |
17 |
|
18 |
If I'm not mistaken, that should eliminate the partial flag matches you |
19 |
mentioned without causing other issues. |
20 |
|
21 |
-- |
22 |
Duncan - List replies preferred. No HTML msgs. |
23 |
"Every nonfree program has a lord, a master -- |
24 |
and if you use the program, he is your master." Richard Stallman |
25 |
|
26 |
-- |
27 |
gentoo-amd64@g.o mailing list |