--- /usr/portage/dev-libs/apr-util/apr-util-1.3.11.ebuild 2011-05-14 23:01:07.000000000 +0200 +++ apr-util-1.3.11.ebuild 2011-10-05 21:21:24.000000000 +0200 @@ -35,8 +35,9 @@ doc? ( app-doc/doxygen )" src_prepare() { - eautoreconf + tc-export CC CPP + eautoreconf elibtoolize } @@ -68,7 +69,8 @@ } src_compile() { - emake CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed" + emake CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + LIBTOOL="${ROOT}usr/bin/libtool" CC="${CC}" || die "emake failed" if use doc; then emake dox || die "emake dox failed"