3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #82260 from knedlsepp/improve-suitesparse-build-speed

suitesparse: Enable parallel building
This commit is contained in:
Jan Tojnar 2020-03-10 17:57:31 +01:00 committed by GitHub
commit 91c98f407e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
# Build individual shared libraries # Build individual shared libraries
make library \ make library \
JOBS=$NIX_BUILD_CORES \
BLAS=-lopenblas \ BLAS=-lopenblas \
LAPACK="" \ LAPACK="" \
${stdenv.lib.optionalString openblas.blas64 "CFLAGS=-DBLAS64"} ${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 # Bundling is done by building the static libraries, extracting objects from
# them and combining the objects into one shared library. # them and combining the objects into one shared library.
mkdir -p static 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 cd static
for i in lib*.a; do for i in lib*.a; do