--- toolchain.eclass.orig 2009-09-06 13:54:09.000000000 +0200 +++ toolchain.eclass 2009-09-06 13:52:31.000000000 +0200 @@ -2481,17 +2481,23 @@ # -are-, and not where they -used- to be. also, any dependencies we have # on our own .la files need to be updated. fix_libtool_libdir_paths() { pushd "${D}" >/dev/null + local path local dir=${LIBPATH} local allarchives=$(cd ./${dir}; echo *.la) allarchives="\(${allarchives// /\\|}\)" - sed -i \ - -e "/^libdir=/s:=.*:='${dir}':" \ - ./${dir}/*.la + for path in ${dir}{/32,/64,} ; do + if [[ -d ${path} ]]; then + sed -i \ + -e "/^libdir=/s:=.*:='${path}':" \ + ./${path}/*.la + fi + done + sed -i \ -e "/^dependency_libs=/s:/[^ ]*/${allarchives}:${LIBPATH}/\1:g" \ $(find ./${PREFIX}/lib* -maxdepth 3 -name '*.la') \ ./${dir}/*.la