summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2024-07-23 12:25:21 +0200
committerGitHub <noreply@github.com>2024-07-23 12:25:21 +0200
commit6a8a86ede2e8ce496648f2a8ae79d2c24464ca2a (patch)
treef7958567b420ef81bd7f36cc00dd9f9da10c8528
parentMerge pull request #326583 from wietsedv/wietsedv-calibre-web-jsonschema (diff)
parentscalapack: fix build by suppressing implicit function warnings (diff)
downloadnixpkgs-6a8a86ede2e8ce496648f2a8ae79d2c24464ca2a.tar.gz
Merge pull request #326684 from 21CSM/fix-scalapack-build
scalapack: fix build by suppressing implicit function warnings
-rw-r--r--pkgs/development/libraries/science/math/scalapack/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/libraries/science/math/scalapack/default.nix b/pkgs/development/libraries/science/math/scalapack/default.nix
index 2f8d3dbe15de..f1e0f6cf5a12 100644
--- a/pkgs/development/libraries/science/math/scalapack/default.nix
+++ b/pkgs/development/libraries/science/math/scalapack/default.nix
@@ -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"''}
)
'';