mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
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.
This commit is contained in:
parent
9ac2a4ee34
commit
f90b26917a
1 changed files with 3 additions and 7 deletions
|
@ -773,7 +773,8 @@ (define-public dlib
|
||||||
#t))))
|
#t))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-asserts
|
(add-after 'unpack 'disable-asserts
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -810,12 +811,7 @@ (define-public dlib
|
||||||
(with-directory-excursion test-dir
|
(with-directory-excursion test-dir
|
||||||
(invoke "make" "-j" (number->string (parallel-job-count)))
|
(invoke "make" "-j" (number->string (parallel-job-count)))
|
||||||
(invoke "./dtest" "--runall"))
|
(invoke "./dtest" "--runall"))
|
||||||
#t)))
|
#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)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
;; For tests.
|
;; For tests.
|
||||||
|
|
Loading…
Reference in a new issue