[Top][All Lists]

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

Re: Dependencies with static library

From: Russ Allbery
Subject: Re: Dependencies with static library
Date: Sat, 15 Nov 2008 13:19:18 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

"Erich Hoover" <address@hidden> writes:

> I have an application (A) that depends upon an obscure library made by
> me (B), that depends on a slightly less obscure library made by someone
> else (C).  I would like to compile A with "B" as a static library so
> that the user does not need to install it separately, but when I do this
> the compilation does not pull in the library "C" into the mix and has
> undefined references to all of the functions it needs.  Is there any
> easy way for me to fix this without having "A" know about the dependency
> on "C"?

Is (B) also linked with libtool?  If so, is the *.la file installed?
That's where libtool gets the metadata required to know when to link to
additional libraries.

Russ Allbery (address@hidden)             <>

reply via email to

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