--- /usr/portage/media-libs/ladspa-cmt/ladspa-cmt-1.15.ebuild 2009-04-05 09:08:24.000000000 +0100 +++ /usr/portage/media-libs/ladspa-cmt/ladspa-cmt-1.15.ebuild 2010-09-13 16:54:18.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-cmt/ladspa-cmt-1.15.ebuild,v 1.27 2008/08/17 08:19:51 aballier Exp $ -inherit eutils +inherit eutils toolchain-funcs IUSE="" @@ -24,6 +24,8 @@ unpack ${A} cd "${S}" + epatch "${FILESDIR}/${P}-respect-ldflags.patch" + sed -i \ -e "/^CFLAGS/ s/-O3/${CFLAGS}/" \ -e 's|/usr/local/include||g' \ @@ -38,6 +40,7 @@ } src_compile() { + tc-export CXX # It sets CXXFLAGS to CFLAGS, can be wrong.. # Just set CXXFLAGS to what they should be emake CXXFLAGS="$CXXFLAGS -I. -fPIC" || die