Re: autoconf linking with shared object

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

 



Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> 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, schwab@xxxxxxx
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 mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux