From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K27ZS-0006W9-2n for garchives@archives.gentoo.org; Fri, 30 May 2008 16:35:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63371E0630; Fri, 30 May 2008 16:35:12 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by pigeon.gentoo.org (Postfix) with ESMTP id 1F2C1E0630 for ; Fri, 30 May 2008 16:35:12 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id z27so342896ugc.49 for ; Fri, 30 May 2008 09:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; bh=Z7SXVRwuHW0VT0r87UQ6MxCcRjFa1zJtyUoilaU7Z+0=; b=qaGvmTdVuffNM+Hk9djkYPB39DBhmUwoWqIC2M8tATYTBMLowozLL6EO/I5m01anxCWH8A7tCwL1TfHCkThoo4u7sB+UPQoN2V7bjwJPUAHhAjpZYudUvL+5G9tgzhXM4tUH4vOEpb+UB9MQJfyeU3wFY3F8b9iQayCCEzBMAwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=KPiCEzy83VohA8tJpItvhCRCncvp5olPCEjE+qoroxj4ptFF53c4hOD67nrElwWXhP0STB+NZg76NWJf/lsDbnfwC/tXWcH4KF7v+eFJOy64bEUhIKCQqV2wzNytW9na1UMKDTxTUhCZVBjQ7wG6Op0dczWQxFJQgewRCYOqJec= Received: by 10.67.115.9 with SMTP id s9mr1180031ugm.81.1212165310839; Fri, 30 May 2008 09:35:10 -0700 (PDT) Received: from snowcone ( [213.121.151.206]) by mx.google.com with ESMTPS id l33sm1258380ugc.14.2008.05.30.09.35.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 May 2008 09:35:10 -0700 (PDT) Date: Fri, 30 May 2008 17:35:05 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: RFC: Should preserve-libs be enabled by default? Message-ID: <20080530173505.590c69f9@snowcone> In-Reply-To: References: <20080529011316.54f0f1f6@sheridan.genone.homeip.net> <3c32af40805300509o7a3c042av8f95f422b02ea39b@mail.gmail.com> <200805301657.46861.levertond@googlemail.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; x86_64-pc-linux-gnu) 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: multipart/signed; boundary="Sig_/S9DuN_.obE/8fg_vyhRHM44"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 73126306-c677-4e9c-b9ed-98dc59d6332f X-Archives-Hash: eaa4126914984e06db5a17521972cae2 --Sig_/S9DuN_.obE/8fg_vyhRHM44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 30 May 2008 18:29:49 +0200 flameeyes@gmail.com (Diego 'Flameeyes' Petten=C3=B2) wrote: > David Leverton writes: > > It's not just the order, it also breaks things that rely on > > the .init section being called at all to register themselves with > > the core application (with --as-needed, the .so doesn't get loaded > > in the first place, so it doesn't get a chance to run anything). >=20 > This really is backward, solution-wise: you expect the "core > application" to know enough of the plugins to link them together, but > not enough to call their init functions... Actually, no. The core application doesn't have to be doing the linking. The linking can be done by an intermediate library. > And still, it breaks not only with --as-needed but also with the Sun > linker, with the PE file format and other non-ELF file formats. So > it's really not a problem _limited_ to --as-needed. It works with any standard-compliant C++ setup. > Beside, you can _force_ a link by using --no-as-needed before a given > library, that's what it's supposed to happen if you don't want to be > helped by the linker. And next you'll be saying "and you can force a compile using --no-broken-behaviour-that-goes-against-the-standard". > To a very minimum this can be said to be a _clash_ between two > designs. Saying that --as-needed is _broken_ because it breaks this > case is _quite_ an exaggeration... Saying it's broken because it goes against an international standard isn't... --=20 Ciaran McCreesh --Sig_/S9DuN_.obE/8fg_vyhRHM44 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkhALLsACgkQ96zL6DUtXhFAagCg3ygxbySWMrn/YOTw1eugUPnu V3kAoJhnm4WjfMODhNaSP2RaxuH+0hW3 =I4CB -----END PGP SIGNATURE----- --Sig_/S9DuN_.obE/8fg_vyhRHM44-- -- gentoo-dev@lists.gentoo.org mailing list