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
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
|
|||||||
"--enable-dap"
|
"--enable-dap"
|
||||||
"--enable-shared"
|
"--enable-shared"
|
||||||
]
|
]
|
||||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]);
|
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user