From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Gc1hg-0005gf-S3 for garchives@archives.gentoo.org; Mon, 23 Oct 2006 15:27:05 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9NFNADh014704; Mon, 23 Oct 2006 15:23:10 GMT Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9NFNAdF010025 for ; Mon, 23 Oct 2006 15:23:10 GMT Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gc1dK-00013e-8D for gentoo-amd64@lists.gentoo.org; Mon, 23 Oct 2006 17:22:34 +0200 Received: from ip68-230-97-209.ph.ph.cox.net ([68.230.97.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Oct 2006 17:22:34 +0200 Received: from 1i5t5.duncan by ip68-230-97-209.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Oct 2006 17:22:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: "Duncan" <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: -fPIC - Toolchain broken? Date: Mon, 23 Oct 2006 15:22:04 +0000 (UTC) Message-ID: References: <45364363.3010601@getdesigned.at> <45374B67.6010901@getdesigned.at> <20061019071120.4dbd295b@mandalor.homelinux.net> <45379CDC.1010504@gentoo.org> <20061023162050.48b4e70f@c1358217.kevquinn.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-209.ph.ph.cox.net User-Agent: pan 0.117 (Old Rip Van Winkle) Sender: news X-Archives-Salt: f8fd05fa-c172-49e2-803d-ef1f08d380fa X-Archives-Hash: 675b98f3997c2b3d6533553a9f66c54c "Kevin F. Quinn" posted 20061023162050.48b4e70f@c1358217.kevquinn.com, excerpted below, on Mon, 23 Oct 2006 16:20:50 +0200: > FWIW I think Simon meant: > > CFLAGS=" ${CFLAGS}" ; CFLAGS=${CFLAGS// -fremoved} > > assuming that adding the space was done to catch flags that match part > of longer flags. What about adding a space at each end, then testing for a space at each end of the removed,, but then you have to be sure and add one space back in so as not to concatenate two flags into one with the removal, so... CFLAGS=" ${CFLAGS} " ; CFLAGS=${CFLAGS// -fremoved/ /} If I'm not mistaken, that should eliminate the partial flag matches you mentioned without causing other issues. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- gentoo-amd64@gentoo.org mailing list