me
/
guix
Archived
1
0
Fork 0

gnu: volk: Remove static library.

* gnu/packages/engineering.scm (volk)[arguments]: Add a
'remove-static-libraries phase.
master
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
1 changed files with 8 additions and 0 deletions

View File

@ -1092,6 +1092,14 @@ the 'showing the effect of'-style of operation.")
(arguments
`(#: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
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))