--- /var/gentoo-x86/sci-libs/lapack/lapack-3.0-r1.ebuild 2006-08-25 09:30:14.000000000 +0200 +++ lapack-3.0-r1.ebuild 2006-10-06 12:36:11.000000000 +0200 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack/lapack-3.0-r1.ebuild,v 1.4 2006/08/25 07:30:14 corsair Exp $ +inherit toolchain-funcs fortran + DESCRIPTION="Linear Algebra PACKage for scientists, engineers, and mathematicians. This contains the libraries for creating programs that use LAPACK." HOMEPAGE="http://www.netlib.org/lapack/" SRC_URI="http://www.netlib.org/lapack/lapack.tgz" @@ -21,7 +23,7 @@ cd SRC # ncessary to be able to link against liblapack.a on amd64 use amd64 && CFLAGS="${CFLAGS} -fPIC" - FC="g77" FFLAGS="${CFLAGS}" make static || die "make failed" + FC=$(tc-getCC) FFLAGS="${CFLAGS}" make static || die "make failed" } src_install() {