--- libtool-2.2.6a.ebuild 2009-03-12 20:53:30.000000000 +0100 +++ libtool-2.2.6a.ebuild.new 2009-03-12 20:54:26.000000000 +0100 @@ -26,8 +26,14 @@ src_unpack() { unpack ${A} cd "${S}" - epatch "${FILESDIR}"/${PV}/${P}-gnuinfo.patch #249168 + # In ltmain.sh libtool adds "-L${libdir}" to the compiler options when relinking. + # For cross-compilations this kills us because normally ${libdir} points to /usr/lib. + # We fix this by simply prefixing this with $ROOT, which points to the correct libs. + epatch "${FILESDIR}"/${PV}/${P}-add-cross-compile-root-to-libdir.patch + + epatch "${FILESDIR}"/${PV}/${P}-gnuinfo.patch #249168 + if ! use vanilla ; then epunt_cxx cd libltdl/m4