libtool
[Top][All Lists]
Advanced

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

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


From: Wesley W. Terpstra
Subject: How do I create inter-library dependencies within a single project?
Date: Wed, 18 Oct 2000 19:15:35 -0600
User-agent: Mutt/1.2.5i

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.

-- 
Wesley W. Terpstra <address@hidden>
Javien Canada Inc. - Linux Developer



reply via email to

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