dftd4: enable shared builds on !isStatic platforms
This commit is contained in:
parent
00713edc7b
commit
dc237ef7f5
@ -27,11 +27,18 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ blas lapack mctc-lib mstore multicharge ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/lib/pkgconfig/${pname}.pc \
|
||||
--replace "''${prefix}/" ""
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
# Fix the Pkg-Config files for doubled store paths
|
||||
postPatch = ''
|
||||
substituteInPlace config/template.pc \
|
||||
--replace "\''${prefix}/" ""
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
preCheck = ''
|
||||
export OMP_NUM_THREADS=2
|
||||
|
Loading…
Reference in New Issue
Block a user