diff -ur a/beanstalkd-1.0.ebuild b/beanstalkd-1.0.ebuild --- a/beanstalkd-1.0.ebuild 2008-08-15 16:24:34.000000000 -0500 +++ b/beanstalkd-1.0.ebuild 2009-02-14 14:59:32.000000000 -0600 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/beanstalkd-1.0.ebuild,v 1.1 2008/08/15 21:24:34 caleb Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="A fast, distributed, in-memory workqueue service" HOMEPAGE="http://xph.us/software/beanstalkd/" @@ -22,9 +22,14 @@ cd "${S}" epatch "${FILESDIR}/Makefile.install.patch" + sed -i \ + -e '/^export LDFLAGS :=/s/FLAGS/LIBS/g' \ + -e 's/$(CFLAGS) -O2/-O2 $(CFLAGS)/' \ + Makefile } src_compile() { + tc-export CC emake || die "emake failed." }