libtool
[Top][All Lists]
Advanced

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

Re: How does libtool decide which so to link against?


From: Mike Frysinger
Subject: Re: How does libtool decide which so to link against?
Date: Mon, 25 Oct 2010 16:32:53 -0400

On Mon, Oct 25, 2010 at 4:12 PM, Giles Anderson wrote:
> I have upgraded Boost and find that I have to re-link my own executables.
> Should I have to? I dont really want to.

complain to the boost developers for not being ABI compatible (same
SONAME).  or manually keep the old SONAME on your system.  either way,
libtool is doing the right thing.

> g++ -DHAVE_CONFIG_H -I. -I.  -I/home/gander/include   -Wall -O3 -m64 -mtune=k8
> -MT gadirs-gadirs.o -MD -MP -MF .deps/gadirs-gadirs.Tpo -c -o gadirs-gadirs.o
> `test -f 'gadirs.cpp' || echo './'`gadirs.cpp
> mv -f .deps/gadirs-gadirs.Tpo .deps/gadirs-gadirs.Po
> rm -f gadirs
> /bin/sh ./libtool --tag=CXX   --mode=link g++  -Wall -O3 -m64 -mtune=k8 -
> L/home/gander/lib64  -o gadirs gadirs-gadirs.o -lboost_filesystem

the linker takes care of expanding "-lboost_filesystem" into the
specific SONAME instance on your system.

> Is there a way to force it to link against the link name?

not really if you want to do the right thing

> Isnt that what its there for?

no
-mike



reply via email to

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