diff -ru a/fio-1.34.ebuild b/fio-1.34.ebuild --- a/fio-1.34.ebuild 2009-09-22 05:21:34.000000000 +0000 +++ b/fio-1.34.ebuild 2010-09-03 04:17:53.773727158 +0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-block/fio/fio-1.34.ebuild,v 1.1 2009/09/22 05:21:34 tsunam Exp $ +EAPI="2" + inherit eutils toolchain-funcs flag-o-matic MY_PV="${PV/_rc/-rc}" @@ -19,6 +21,13 @@ DEPEND="dev-libs/libaio" RDEPEND="${DEPEND}" +src_prepare() { + sed -i \ + -e '/filter /s:-o:$(LDFLAGS) -o:' \ + -e '/: depend$/d' \ + Makefile || die +} + src_compile() { append-flags -W emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die "emake failed"