guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: dlib: Install shared library.


From: guix-commits
Subject: branch master updated: gnu: dlib: Install shared library.
Date: Thu, 13 Aug 2020 04:30:14 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new f90b269  gnu: dlib: Install shared library.
f90b269 is described below

commit f90b26917a49a5e2f41b82b920d25666d73f49d4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Aug 13 11:29:08 2020 +0300

    gnu: dlib: Install shared library.
    
    Reported by Hamzeh Nasajpour <h.nasajpour@pantherx.org>.
    
    * gnu/packages/machine-learning.scm (dlib)[arguments]: Add
    configure-flag to build shared library. Remove custom
    'delete-static-library phase.
---
 gnu/packages/machine-learning.scm | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 163ebde..1f4c2e2 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -773,7 +773,8 @@ than 8 bits, and at the end only some significant 8 bits 
are kept.")
                   #t))))
     (build-system cmake-build-system)
     (arguments
-     `(#:phases
+     `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")
+       #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'disable-asserts
            (lambda _
@@ -810,12 +811,7 @@ than 8 bits, and at the end only some significant 8 bits 
are kept.")
                (with-directory-excursion test-dir
                  (invoke "make" "-j" (number->string (parallel-job-count)))
                  (invoke "./dtest" "--runall"))
-               #t)))
-         (add-after 'install 'delete-static-library
-           (lambda* (#:key outputs #:allow-other-keys)
-             (delete-file (string-append (assoc-ref outputs "out")
-                                         "/lib/libdlib.a"))
-             #t)))))
+               #t))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ;; For tests.



reply via email to

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