gnu: crypto++: Build in parallel.

* gnu/packages/crypto.scm (crypto++)[arguments]: Make ‘build-shared’
the main ‘build’ phase.  Respect MAKE-FLAGS and PARALLEL-JOB-COUNT.
This commit is contained in:
Tobias Geerinckx-Rice 2020-02-19 18:46:04 +01:00
parent 3ca6c1a720
commit bfa3caa2fb
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -627,10 +627,12 @@ (define-public crypto++
((" -march=native") ""))
#t))
(delete 'configure)
(add-after 'build 'build-shared
(lambda _
;; By default, only the static library is built.
(invoke "make" "shared")))
(replace 'build
;; By default, only the static library is built.
(lambda* (#:key (make-flags '()) #:allow-other-keys)
(apply invoke "make" "shared"
"-j" (number->string (parallel-job-count))
make-flags)))
(add-after 'install 'install-shared-library-links
;; By default, only .so and .so.x.y.z are installed.
;; Create all the intermediates expected by dependent packages.