aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/petsc/petsc-3.1_p5.ebuild')
-rw-r--r--sci-mathematics/petsc/petsc-3.1_p5.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/sci-mathematics/petsc/petsc-3.1_p5.ebuild b/sci-mathematics/petsc/petsc-3.1_p5.ebuild
index 7c5c64f92..aa99a6aa9 100644
--- a/sci-mathematics/petsc/petsc-3.1_p5.ebuild
+++ b/sci-mathematics/petsc/petsc-3.1_p5.ebuild
@@ -45,12 +45,12 @@ src_configure(){
if use mpi; then
myconf="${myconf} --with-cc=/usr/bin/mpicc"
myconf="${myconf} --with-cxx=/usr/bin/mpicxx"
- myconf="${myconf} --with-fc=/usr/bin/mpif77"
+ use fortran && myconf="${myconf} --with-fc=/usr/bin/mpif77"
myconf="${myconf} --with-mpi=1 --with-mpi-compilers=1"
else
myconf="${myconf} --with-cc=$(tc-getCC)"
myconf="${myconf} --with-cxx=$(tc-getCXX)"
- myconf="${myconf} --with-fc=$(tc-getF77)"
+ use fortran && myconf="${myconf} --with-fc=$(tc-getF77)"
myconf="${myconf} --with-mpi=0"
fi