mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: flann: Do not install .a files.
* gnu/packages/maths.scm (flann)[arguments]: Add #:phases.
This commit is contained in:
parent
458480235b
commit
9684e30b9b
1 changed files with 11 additions and 0 deletions
|
@ -2214,6 +2214,17 @@ (define-public flann
|
|||
#:strip-directories '("lib" "lib64" "libexec"
|
||||
"bin" "sbin" "share/flann/octave")
|
||||
|
||||
;; Save 12 MiB by not installing .a files. Passing
|
||||
;; '-DBUILD_STATIC_LIBS=OFF' has no effect.
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after 'install 'remove-static-libraries
|
||||
(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$"))
|
||||
#t))))
|
||||
|
||||
#:tests? #f)) ; The test data are downloaded from the Internet.
|
||||
(home-page "http://www.cs.ubc.ca/research/flann/")
|
||||
(synopsis "Library for approximate nearest neighbors computation")
|
||||
|
|
Loading…
Reference in a new issue