This patch series is on top of 04329d83555b5f8d2fd02428418a79ea392b2d91. The basic idea is to look for -L= and -R= to expand the sysroot, and for the sysroot to remove it in .la files.
Some missing testcases are hinted at in sysroot.at. I think they would already work with the patch as is. However, I haven't retested this at all, so I trust my old runs from mid 2009 which were done with Fedora 12 and its mingw cross-compilation environment. Sorry for the delay. Paolo Bonzini (8): handle sysroot flags fix buglet provide shell functions to configure Add --with-sysroot add a basic sysroot test teach libtool -L= and -R= handle sysrooted paths when reading dependencies to la files emit sysrooted paths when installing .la files Makefile.am | 3 +- libltdl/config/ltmain.m4sh | 147 +++++++++++++++++++++++++-------- libltdl/m4/libtool.m4 | 123 +++++++++++++++++++++++----- tests/sysroot.at | 194 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 412 insertions(+), 55 deletions(-) create mode 100644 tests/sysroot.at