[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: -Wl,--as-needed considered possibly harmful

On Mon, Dec 10, 2007 at 01:47:15PM -0500, Michael Poole wrote:
> Steve Langasek writes:

> > On Sun, Dec 09, 2007 at 07:23:00PM +0100, Josselin Mouette wrote:

> >> Le dimanche 09 décembre 2007 à 19:11 +0100, Bernhard R. Link a écrit :
> >> > Just curing the symptoms instead of the problems will not help to get
> >> > there any sooner.

> >> What if there is no problem?

> >> For example, pkg-config --libs gtk+-x11-2.0 will return, among others,
> >> -lglib-2.0 and -lm. And this is perfectly intentional.

> > Just because it's intentional doesn't mean it isn't absurd and wrong.

> What happens for a user who (however absurd or insane he might be to
> try this with gtk+) tries to link his application statically?

Not that you should link statically with gtk (this yields the classic
problem of internal ABI skew when statically linking with a library that
uses dlopen), but pkg-config --static does exactly this.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Reply to: