--- aufs3-3_p20121015.ebuild.orig 2012-10-17 21:15:20.039002283 +0200 +++ aufs3-3_p20121015.ebuild 2012-10-17 20:29:28.600101283 +0200 @@ -4,7 +4,7 @@ EAPI=4 -inherit linux-mod multilib toolchain-funcs eutils +inherit linux-mod multilib toolchain-funcs flag-o-matic eutils AUFS_VERSION="${PV%%_p*}" # highest branch version @@ -124,12 +124,10 @@ } src_compile() { - local ARCH=x86 - - emake CC=$(tc-getCC) ARCH=$(tc-arch-kernel) CONFIG_AUFS_FS=m KDIR=${KV_DIR} + emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" ARCH="$(tc-arch-kernel)" CONFIG_AUFS_FS=m KDIR="${KV_OUT_DIR}" cd "${WORKDIR}"/${PN/3}-util - emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include + emake CC="$(tc-getCC)" AR="$(tc-getAR)" KDIR="${KV_OUT_DIR}" C_INCLUDE_PATH="${S}"/include } src_install() { @@ -142,7 +140,7 @@ dodoc Documentation/filesystems/aufs/README cd "${WORKDIR}"/${PN/3}-util - emake DESTDIR="${D}" KDIR=${KV_DIR} install + emake DESTDIR="${D}" install newdoc README README-utils }