scalapack: fix build by suppressing implicit function warnings

Workaround for upstream issue: Reference-ScaLAPACK/scalapack#31. This change suppresses warnings until the upstream project addresses these implicit function declarations.
This commit is contained in:
21CSM
2024-07-12 20:24:50 -04:00
parent f9d8021398
commit 72fa251097
@@ -52,10 +52,11 @@ stdenv.mkDerivation rec {
-DLAPACK_LIBRARIES="-llapack"
-DBLAS_LIBRARIES="-lblas"
-DCMAKE_Fortran_COMPILER=${lib.getDev mpi}/bin/mpif90
${lib.optionalString passthru.isILP64 ''
-DCMAKE_Fortran_FLAGS="-fdefault-integer-8"
-DCMAKE_C_FLAGS="-DInt=long"
''}
-DCMAKE_C_FLAGS="${lib.concatStringsSep " " [
"-Wno-implicit-function-declaration"
(lib.optionalString passthru.isILP64 "-DInt=long")
]}"
${lib.optionalString passthru.isILP64 ''-DCMAKE_Fortran_FLAGS="-fdefault-integer-8"''}
)
'';