--- c-client-2007e.ebuild 2009-03-30 12:11:19.000000000 -0400 +++ c-client-2007e.ebuild 2010-08-08 06:18:17.996000021 -0400 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/c-client-2007e.ebuild,v 1.9 2009/03/30 16:03:05 armin76 Exp $ -inherit flag-o-matic eutils libtool +inherit flag-o-matic eutils libtool toolchain-funcs MY_PN=imap MY_P="${MY_PN}-${PV}" @@ -65,6 +65,11 @@ # Remove the pesky checks about SSL stuff sed -e '/read.*exit/d' -i Makefile + # Respect LDFLAGS + epatch "${FILESDIR}"/${PN}-respect-LDFLAGS.patch + sed -e "s/CC=cc/CC=$(tc-getCC)/" -i src/osdep/unix/Makefile + sed -e "s/ARRC=ar/ARRC=$(tc-getAR)/" -i src/osdep/unix/Makefile + sed -e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" -i src/osdep/unix/Makefile elibtoolize } @@ -77,7 +82,7 @@ target=bsf fi # no parallel builds supported! - emake -j1 $target SSLTYPE=${ssltype} EXTRACFLAGS="${CFLAGS}" || die "make failed" + emake -j1 SSLTYPE=${ssltype} $target EXTRACFLAGS="${CFLAGS}" EXTRALDFLAGS="${LDFLAGS}" || die "make failed" } src_install() {