Hi,
the following patch adds support for gcc's --sysroot argument to libtool.
I'll post the patch first and will reply to it, giving more details where
needed.
I've been building a number of packages with variations of this patch
depending on the libtool version. The most tricky packages were those
building multiple libtool libraries with inter-dependencies (like glib and
gtk). But even those build fine with this patch.
One more important fact is that after installing packages I always delete the
.la files from my sysroot so that any dependencies will never try to link
against the .la file but against the .so directly. This seems to work rather
well.
I welcome any comments or suggestions.