On Mon, Oct 20, 2003 at 07:32:21PM -0400, Pierre Sarrazin wrote:
> I have a C++ package that contains a library and two command-line
> tools.  If I install this package through an RPM (on a RedHat 8.0
> system), I endup with the lib*.la and lib*.so files in /usr/lib.
> I get into trouble when I compile the sources of a newer version
> of the package, while the older version is still installed.

You should use libtool 1.5 if you're using C++.

> The libtool command that is run by make is the following:
> 
>     /bin/sh ../../libtool --mode=link g++  -g -Wall
>         -o french-conjugator
>         french_conjugator-french-conjugator.o french_conjugator-Command.o
>         -lxml2 -lpthread -lz -lm
>         -L../verbiste -lverbiste-0.1
> 
> The -L option correctly points to the src/verbiste directory, where the
> newer library has been compiled.  However, libtool generates this g++
> command to do the linking:
> 
>     g++ -g -Wall -o french-conjugator
>         french_conjugator-french-conjugator.o french_conjugator-Command.o
>         /usr/lib/libxml2.so -lpthread -lz -lm
>         -L/home/ps/cvswork/verbiste/src/verbiste
>         /usr/lib/libverbiste-0.1.so

Does this patch (against 1.5) work for you?
  http://mail.gnu.org/archive/html/libtool/2003-10/msg00067.html

It should be trivial to apply the patch to your 1.4.3 version.

-- 
albert chin ([EMAIL PROTECTED])


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to