[Top][All Lists]

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

Unnecessary linking with dependencies

From: Josselin Mouette
Subject: Unnecessary linking with dependencies
Date: 11 Mar 2003 22:39:50 +0100

When libtool is used to build a library libfoo that depends on another
libtool library (libbar), it takes the dependencies in the
file and explicitly links with them, i.e. :
./libtool --mode=link gcc -g -O2 [blah blah] -lbar
gcc -shared -g -O2 [blah blah blah] -lbar -lsomething -lX11 ...
where libsomething, libX11... are dependencies for libbar, and libbar
already links with them.

Is it possible to prevent that behaviour ? I'd like to only link
explicitly with libbar. The documentation mentions link_all_deplibs=no,
but it doesn't seem to do that.

 .''`.           Josselin Mouette        /\./\
: :' :           address@hidden
`. `'                        address@hidden
  `-  Debian GNU/Linux -- The power of freedom

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]