Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Date: Sat, 31 May 2008 04:03:38 +0100
On Fri, 30 May 2008 21:50:49 -0500
Ravi Pinjala <ravi@...> wrote:
> Could you explain, for the benefit of us spectators, what these
> libtool problems are, and what cleaner solution you have in mind?
> It'd make this whole discussion a lot more comprehensible.

libtool links against dependencies-of-dependencies, rather than just
direct dependencies. This is correct behaviour on some platforms under
some situations (one example is static linking). But when linking
shared objects on modern Unixy platforms it's a pain in the ass since
you end up with a load of bogus shared object dependencies that break
things unnecessarily upon upgrades.

as-needed works around this by making the linker only link things from
the command line that resolve a name dependency (but name dependencies
aren't the only dependency type). This means that most of the extras
libtool adds in end up getting ignored, but it also means that things
the programmer has explicitly said to link in get ignored too.

The correct fix is to make libtool only link to dependencies of
dependencies when doing, for example, static linking. Debian has a
half-working patch for this that I posted earlier in the thread.

-- 
Ciaran McCreesh
Attachment:
signature.asc (PGP signature)
Replies:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Duncan
References:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Donnie Berkholz
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Luca Barbato
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Luca Barbato
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Luca Barbato
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Brian Harring
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Nirbheek Chauhan
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ciaran McCreesh
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
-- Ravi Pinjala
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Next by thread:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Previous by date:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Next by date:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.