fftw: fix on darwin

doc generation involves running Fortran wrapper generation shell scripts
that hard code references to gcc which fails on darwin.
This commit is contained in:
Anthony Cowley 2016-08-21 00:59:31 -04:00
parent a28ca06298
commit 2e1fa4a9f5

View file

@ -35,7 +35,9 @@ stdenv.mkDerivation rec {
# all x86_64 have sse2
# however, not all float sizes fit
++ optional (stdenv.isx86_64 && (precision == "single" || precision == "double") ) "--enable-sse2"
++ optional stdenv.cc.isGNU "--enable-openmp";
++ optional stdenv.cc.isGNU "--enable-openmp"
# doc generation causes Fortran wrapper generation which hard-codes gcc
++ optional (!stdenv.cc.isGNU) "--disable-doc";
enableParallelBuilding = true;