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 1MuBv8-0000uR-SB for garchives@archives.gentoo.org; Sat, 03 Oct 2009 21:13:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 811EBE0B05; Sat, 3 Oct 2009 21:13:37 +0000 (UTC) Received: from amun.cheops.ods.org (amun.cheops.ods.org [82.95.138.191]) by pigeon.gentoo.org (Postfix) with ESMTP id 4741FE0B05 for ; Sat, 3 Oct 2009 21:13:37 +0000 (UTC) Received: from tefnut.cheops.ods.org ([2001:888:1022:0:211:24ff:fe37:e46e] helo=gentoo.org) by amun.cheops.ods.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MuBv5-0006mI-Qg for gentoo-dev@lists.gentoo.org; Sat, 03 Oct 2009 23:13:36 +0200 Date: Sat, 3 Oct 2009 23:13:06 +0200 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: LD_AS_NEEDED="1" in profiles/targets/developer/make.defaults? Message-ID: <20091003211306.GP19056@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4AC7A277.7040300@gentoo.org> <20091003202929.2a56a1b2@snowcone> <4AC7A79E.2010302@gentoo.org> <20091003201521.GM19056@gentoo.org> <4AC7B3BD.3030903@gentoo.org> <20091003203343.GO19056@gentoo.org> <4AC7B6B2.9080404@gentoo.org> <4AC7BDEA.6070504@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: <4AC7BDEA.6070504@gentoo.org> User-Agent: Mutt/1.5.20 (Darwin 8.11.0, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Content-Scanned: by amun.cheops.ods.org (Exim Exiscan) using SpamAssassin and ClamAV X-Archives-Salt: 75dc965a-62a1-4564-a1da-f77e8e506ff2 X-Archives-Hash: b2531998f22b70e681a9e49f93b31186 On 04-10-2009 00:11:06 +0300, Samuli Suominen wrote: > Perhaps we could add a new function to the flag-o-matic that does the > > CHOST check, and appends the flag, so the check code wouldn't have to be > > duplicated in ebuilds? It should be rather trivial. > > > > ok, chost check would be cheap. how about, > > no-as-needed() { > case $($(tc-getLD) -v 2>&1 *GNU*) # GNU ld > echo "-Wl,--no-as-needed" ;; > esac > } > > usage: append-ldflags $(no-as-needed) that would work fine for me, and all possible future cases I can think of -- Fabian Groffen Gentoo on a different level