mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
suitesparse: Enable parallel building
This commit is contained in:
parent
1be9d1e8b0
commit
1cc9b2501d
@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Build individual shared libraries
|
||||
make library \
|
||||
JOBS=$NIX_BUILD_CORES \
|
||||
BLAS=-lopenblas \
|
||||
LAPACK="" \
|
||||
${stdenv.lib.optionalString openblas.blas64 "CFLAGS=-DBLAS64"}
|
||||
@ -64,7 +65,7 @@ stdenv.mkDerivation rec {
|
||||
# Bundling is done by building the static libraries, extracting objects from
|
||||
# them and combining the objects into one shared library.
|
||||
mkdir -p static
|
||||
make static AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
|
||||
make static JOBS=$NIX_BUILD_CORES AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
|
||||
(
|
||||
cd static
|
||||
for i in lib*.a; do
|
||||
|
Loading…
Reference in New Issue
Block a user