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 ];
|
buildInputs = [ blas lapack mctc-lib mstore multicharge ];
|
||||||
|
|
||||||
postInstall = ''
|
outputs = [ "out" "dev" ];
|
||||||
substituteInPlace $out/lib/pkgconfig/${pname}.pc \
|
|
||||||
--replace "''${prefix}/" ""
|
# 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;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export OMP_NUM_THREADS=2
|
export OMP_NUM_THREADS=2
|
||||||
|
Loading…
Reference in New Issue
Block a user