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:
Lancelot SIX 2016-09-05 16:27:35 +02:00 committed by obadz
parent 5537503dec
commit 85091e33b7

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;