hdf5_1_8: add fortran2003 option
This commit is contained in:
parent
443faefdfb
commit
98a748485e
|
@ -4,6 +4,7 @@
|
||||||
, removeReferencesTo
|
, removeReferencesTo
|
||||||
, cpp ? false
|
, cpp ? false
|
||||||
, gfortran ? null
|
, gfortran ? null
|
||||||
|
, fortran2003 ? false
|
||||||
, zlib ? null
|
, zlib ? null
|
||||||
, szip ? null
|
, szip ? null
|
||||||
, mpi ? null
|
, mpi ? null
|
||||||
|
@ -14,6 +15,9 @@
|
||||||
# (--enable-unsupported could be used to force the build)
|
# (--enable-unsupported could be used to force the build)
|
||||||
assert !cpp || mpi == null;
|
assert !cpp || mpi == null;
|
||||||
|
|
||||||
|
# Need a Fortran compiler for Fortran2003 bindings
|
||||||
|
assert fortran2003 -> gfortran != null;
|
||||||
|
|
||||||
# No point splitting version 1.8.18 into multiple outputs.
|
# No point splitting version 1.8.18 into multiple outputs.
|
||||||
# The library /lib/libhdf5.so has a reference to gcc-wrapper
|
# The library /lib/libhdf5.so has a reference to gcc-wrapper
|
||||||
|
|
||||||
|
@ -45,6 +49,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = []
|
configureFlags = []
|
||||||
++ optional cpp "--enable-cxx"
|
++ optional cpp "--enable-cxx"
|
||||||
++ optional (gfortran != null) "--enable-fortran"
|
++ optional (gfortran != null) "--enable-fortran"
|
||||||
|
++ optional fortran2003 "--enable-fortran2003"
|
||||||
++ optional (szip != null) "--with-szlib=${szip}"
|
++ optional (szip != null) "--with-szlib=${szip}"
|
||||||
++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"]
|
++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"]
|
||||||
++ optional enableShared "--enable-shared";
|
++ optional enableShared "--enable-shared";
|
||||||
|
|
Loading…
Reference in a new issue