On Tue, 2008-02-26 at 17:47 -0600, Nicolas Williams wrote:
> BTW, I needed fix_elf_runpath() because libtool was somehow adding
> $SRC/lib/libsqlite3/... to the runpath of libtclsqlite3 (but not to
> libsqlite3). Don't ask me why; I don't know why.
libtool adds the directories where it finds consumed libs to the
runpath, unless there's a .la file there that tells libtool where
the consumed library will end up eventually[1]. This is quite a
reasonable behaviour, if you think about it, it just happens to be
incompatible with the way SFW is built.
libtool is far less troublesome when it's used the way it was
intended to be used (;
Laca
[1] in which case it adds that directory to the runpath unless
that directory is /usr/lib.