Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: -fPIC - Toolchain broken?
Date: Mon, 23 Oct 2006 15:27:05
Message-Id: ehimms$3p9$1@sea.gmane.org
In Reply to: Re: [gentoo-amd64] Re: -fPIC - Toolchain broken? by "Kevin F. Quinn"
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