gnu: volk: Remove static library.

* gnu/packages/engineering.scm (volk)[arguments]: Add a
'remove-static-libraries phase.
This commit is contained in:
Tobias Geerinckx-Rice 2020-11-25 22:30:02 +01:00
parent 6a18f4c5dc
commit 8da64e9bf9
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1092,6 +1092,14 @@ (define-public volk
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'remove-static-libraries
;; Remove libcpu_features.a (and any others that might appear).
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib")))
(for-each delete-file (find-files lib "\\.a$"
#:fail-on-error? #t))
#t)))
(add-after 'install 'wrap-pythonpath (add-after 'install 'wrap-pythonpath
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))