netcdf-mpi: fix compiler: use mpicc
Use mpicc to build when mpi support is required (instead of regular gcc) (cherry picked from commit 396ffac28f948ebe4864551c67a01d1828e22ba6)
This commit is contained in:
parent
5537503dec
commit
85091e33b7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
|
|||
"--enable-dap"
|
||||
"--enable-shared"
|
||||
]
|
||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]);
|
||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
|
|
Loading…
Reference in a new issue