On Wed, Aug 23, 2000 at 07:23:33AM -0300, Alexandre Oliva wrote:
> On Aug 23, 2000, Alex Hornby <[EMAIL PROTECTED]> wrote:
> 
> > Seeing as I did not specify these myself, perhaps we could make
> > libtool insert only one copy :)
> 
> No.  Each library you linked with depends on those other libraries.
> Removing them from any point in the link command could cause
> unexpected results.

Shouldn't these inter library dependencies be resolved
within each library itself? Shared libraries should be
self contained, having a DT_NEEDED for every library
they depend on. So I do not need know that e.g. -lpng needs
-lz, I simply say -lpng and libpng.so has a DT_NEEDED
for libz and everything is fine. Libtool can jump in
with $dependency_libs where OS/linker lacks of that support.

Lets patch GNU ld to refuse linking shared libs that are
not self contained. Let's make it refusing to create any
improper library. Oh brave new world. Ok, 'nuff kidding,
I'm in that mood again.

Seriously, any hope to get libtool to use -llibfoo from
$dependency_libs only on systems lacking of self contained
libraries and Linux^H^H^H^H^H?

  Bj�rn Fischer

-- 
-----BEGIN GEEK CODE BLOCK-----
GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
K- !w !O !M !V  PS++  PE-  PGP++  t+++  !5 X++ tv- b+++ D++ G e+ h-- y+ 
------END GEEK CODE BLOCK------

Reply via email to