guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/07: gnu: volk: Remove static library.


From: guix-commits
Subject: 04/07: gnu: volk: Remove static library.
Date: Wed, 25 Nov 2020 17:59:38 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit 8da64e9bf9cabb5cd159b66f697ed5e32de3f1f4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Nov 25 22:30:02 2020 +0100

    gnu: volk: Remove static library.
    
    * gnu/packages/engineering.scm (volk)[arguments]: Add a
    'remove-static-libraries phase.
---
 gnu/packages/engineering.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 99b1545..558541d 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]