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 1MuB1F-0005MF-V9 for garchives@archives.gentoo.org; Sat, 03 Oct 2009 20:15:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83D85E0976; Sat, 3 Oct 2009 20:15:52 +0000 (UTC) Received: from amun.cheops.ods.org (amun.cheops.ods.org [82.95.138.191]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A04CE0976 for ; Sat, 3 Oct 2009 20:15:52 +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 1MuB1C-0006Ig-JZ for gentoo-dev@lists.gentoo.org; Sat, 03 Oct 2009 22:15:51 +0200 Date: Sat, 3 Oct 2009 22:15:21 +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: <20091003201521.GM19056@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4AC7A277.7040300@gentoo.org> <20091003202929.2a56a1b2@snowcone> <4AC7A79E.2010302@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: <4AC7A79E.2010302@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: 9ecfdebb-73a2-46d4-93b9-20ebbb17f65e X-Archives-Hash: 8f5018fd283f633a26b9158d11541bd7 On 03-10-2009 22:35:58 +0300, Samuli Suominen wrote: > Ciaran McCreesh wrote: > > On Sat, 03 Oct 2009 22:13:59 +0300 > > Samuli Suominen wrote: > >> Since new binutils will support LD_AS_NEEDED="1" to force ld behave > >> asneeded we could use this for the developer -target in profiles? > >> > >> Speak up if you think it's a terrible idea. > > > > Well, it does break correct code, so it's about on par with forcing > > -ffast-math or -fno-exceptions or -fvisibility-inlines-hidden on > > globally... > > > > Be reasonable. We can add -Wl,--no-as-needed for those packages with > valid code. And I'm certainly not suggesting adding it to base/, _only_ > for the developer target. Please recall that this is a GNU binutils flag. I prefer the environment flag over the command-line option, because it doesn't break other linkers, but if it implies many ebuilds getting -Wl,--no-as-needed append-ldflagged, then I'm not getting happy as that breaks my builds. -- Fabian Groffen Gentoo on a different level