From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MhDRS-00051A-CI for garchives@archives.gentoo.org; Sat, 29 Aug 2009 02:13:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94A25E0789; Sat, 29 Aug 2009 07:22:27 +0000 (UTC) Received: from hera.cwi.nl (hera.cwi.nl [192.16.191.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 47A9CE0789 for ; Sat, 29 Aug 2009 07:22:27 +0000 (UTC) Received: from gentoo.org (pegasus.ins.cwi.nl [192.16.196.142]) by hera.cwi.nl with ESMTP id n7T7MQr7020712 for ; Sat, 29 Aug 2009 09:22:26 +0200 (CEST) Date: Sat, 29 Aug 2009 09:23:23 +0200 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Proposal for flag-o-matic.eclass (append-ldflags) Message-ID: <20090829072322.GP6839@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <90b936c0812080833q1079ea5bsaf48a8b7b703ad64@mail.gmail.com> <90b936c0812141339r2cd242acr697164d59ff2088d@mail.gmail.com> <200908281608.59694.vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200908281608.59694.vapier@gentoo.org> User-Agent: Mutt/1.5.20 (SunOS 5.11, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Archives-Salt: 37f6b19c-534d-42b9-9df0-4ce0143d2ea9 X-Archives-Hash: 9d867474addcf947c4c29c42986d20ba On 28-08-2009 16:08:59 -0400, Mike Frysinger wrote: > > As such, we will leave > > it local to Gentoo Prefix until we can come up with a better idea. > > stick it behind userland_GNU ? i dont mind extending append-ldflags > in such a way, but the "pro" you listed originally (protect users from > typos in ebuilds) isnt a pro in my book -- it should fail. basically we would need something like "linker_GNU", since all Prefix arches have userland_GNU set to true at some point we did stuff like grepping for GNU in ld -v output, but that's expensive, and it makes probably more sense to do some CHOST matches with known configurations then, handling the obvious cases (--{no-,}as-needed etc.) > i.e. something like: > append-ldflags() { > use userland_GNU || set -- $(test-flag-LD "$@") > ...... > } thanks -- Fabian Groffen Gentoo on a different level