--- fbv-1.0b.ebuild.orig 2010-12-20 07:34:52.829673131 +1000 +++ fbv-1.0b.ebuild 2010-12-19 14:49:07.000000000 +1000 @@ -21,6 +21,7 @@ unpack ${A} cd "${S}" epatch "${FILESDIR}"/oob-segfault-fbv-${PV}.diff + epatch "${FILESDIR}"/${P}-cc.patch sed -e 's/-lungif/-lgif/g' -i Makefile -i configure } @@ -31,6 +32,8 @@ use gif || myconf="${myconf} --without-libungif" use jpeg || myconf="${myconf} --without-libjpeg" ./configure \ + --cc="${CHOST}-gcc" \ + --libs="${LDFLAGS}" \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \