automake
[Top][All Lists]
Advanced

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

Re: building a shared library that depends on a static library


From: Ralf Wildenhues
Subject: Re: building a shared library that depends on a static library
Date: Fri, 3 Mar 2006 17:27:27 +0100
User-agent: Mutt/1.5.11

Hi Jason,

* Jason Kraftcheck wrote on Tue, Feb 28, 2006 at 02:42:34AM CET:
> Automake includes the contents of the $LIBS variable in all link commands,
> including linking libraries.  This results in the following behavior:

> 3) If libtool is creating a shared library, and one or more of the libraries 
> in
> $LIBS is static, behavior is *incorrect*.  libtool links the objects in the
> static archives into the resulting shared library.  As static archives are
> typically compiled w/out PIC, the result is a broken shared library.

Which system is this on?   GNU/Linux x86_64?
$ grep "^deplibs_check_method" ./libtool

is pass_all, right?

> How do I keep the behavior in 1) and 2), while changing the behavior for 3) 
> such
> that the static libraries in $LIBS are listed as dependencies in the .la file,
> but not linked into the shared library?

By fighting a long and hard fight on one of the Libtool lists to kill
pass_all on your system: it's wrong there.  I'm on your side, BTW.  ;-)
(And there is a TODO item for this, too.)

It was changed to pass_all because of times the previous setting did the
wrong thing for many people, or so I think (was before my time).

Cheers,
Ralf




reply via email to

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