[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf linking with shared object
From: |
Andreas Schwab |
Subject: |
Re: autoconf linking with shared object |
Date: |
Wed, 29 Mar 2006 11:39:23 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Ralf Wildenhues <address@hidden> writes:
> Hi Braden,
>
> * Braden McDaniel wrote on Wed, Mar 29, 2006 at 10:32:37AM CEST:
>> Is this advice really still relevant? Are all those packages that apply
>> -l and -L together as a unit Doing It Wrong?
>
> Yes. And anybody trying to link completely statically in this case will
> be hurt: the linker will only search the static libraries when it
> encounters them on the command line; if a later library needs some
> object from an earlier one pulled in (that wasn't already pulled in by
> something else), then you will get a link failure.
With linker flags like --as-needed this becomes relevant even in the
shared case.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- autoconf linking with shared object, Matt Kowalczyk, 2006/03/27
- Re: autoconf linking with shared object, Ralf Wildenhues, 2006/03/28
- Re: autoconf linking with shared object, Brian Dessent, 2006/03/28
- Re: autoconf linking with shared object, Matt Kowalczyk, 2006/03/28
- Re: autoconf linking with shared object, Ralf Wildenhues, 2006/03/29
- Re: autoconf linking with shared object, Braden McDaniel, 2006/03/29
- Re: autoconf linking with shared object, Ralf Wildenhues, 2006/03/29
- Re: autoconf linking with shared object,
Andreas Schwab <=
- Re: autoconf linking with shared object, Braden McDaniel, 2006/03/29
- Re: autoconf linking with shared object, Ralf Wildenhues, 2006/03/29