libtool
[Top][All Lists]
Advanced

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

Re: How do I create inter-library dependencies within a single project?


From: Stephan Kulow
Subject: Re: How do I create inter-library dependencies within a single project?
Date: Thu, 19 Oct 2000 11:46:30 +0200

"Wesley W. Terpstra" wrote:
> 
> I would like to run:
> libtool c++ -o foo.lo foo.cc
> libtool c++ -o bar.lo bar.cc
> libtool c++ -o libfoo.la foo.lo -rpath /usr/lib
> libtool c++ -o libbar.la bar.lo libfoo.la -rpath /usr/lib
> 
> But, the last command yields:
> libtool: link: error: cannot link shared libraries into libtool libraries
> 
> However, this works:
> libtool c++ -o foo.lo foo.cc
> libtool c++ -o bar.lo bar.cc
> libtool c++ -o libfoo.la foo.lo -rpath /usr/lib
> libtool install libfoo.la /usr/lib
> libtool c++ -o libbar.la bar.lo -lfoo -rpath /usr/lib
> 
> I want to achieve the effect of the last sequence of commands without
> installing the library b/c the two libraries are part the same package.
> 
> What can I do? Thanks.
What version of libtool do you use? It works with both the HEAD
and ml branch. KDE uses it extensivly on all kind of platforms.

Greetings, Stephan

-- 
... but you ain't had mine



reply via email to

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