superlu: fix darwin
The update from 5.2.1 -> 7.0.0 causes superlu segfaults running the tests when linked with Accelerate due to superlu using the single precision interface. Set the Blas vendor to Generic to prevent cmake from using Accelerate and use the nixpkgs provided blas/lapack libraries.
This commit is contained in:
@@ -45,10 +45,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
propagatedBuildInputs = [ blas ];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "enable_fortran" true)
|
||||
];
|
||||
cmakeFlags =
|
||||
[
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "enable_fortran" true)
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# prevent cmake from using Accelerate, which causes tests to segfault
|
||||
# https://github.com/xiaoyeli/superlu/issues/155
|
||||
"-DBLA_VENDOR=Generic"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user