netcdf-mpi: fix compiler: use mpicc

Use mpicc to build when mpi support is required (instead of regular gcc)
This commit is contained in:
Lancelot SIX 2016-09-05 16:27:35 +02:00
parent d6e2aad880
commit 396ffac28f
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047

View File

@ -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;