Merge pull request #168249 from sheepforce/pcmsolver
PCMSolver Glibc Compatibility
This commit is contained in:
commit
c2a8099158
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python2
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python3
|
||||
, boost, eigen, zlib
|
||||
} :
|
||||
|
||||
@ -13,11 +13,18 @@ stdenv.mkDerivation rec {
|
||||
sha256= "0jrxr8z21hjy7ik999hna9rdqy221kbkl3qkb06xw7g80rc9x9yr";
|
||||
};
|
||||
|
||||
# Glibc 2.34 changed SIGSTKSZ to a dynamic value, which breaks
|
||||
# PCMsolver. Replace SIGSTKZ by the backward-compatible _SC_SIGSTKSZ.
|
||||
postPatch = ''
|
||||
substituteInPlace external/Catch/catch.hpp \
|
||||
--replace SIGSTKSZ _SC_SIGSTKSZ
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gfortran
|
||||
perl
|
||||
python2
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user