aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-10-23 12:41:04 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-10-23 13:24:43 +0200
commitb7e3f85e11e66bd1e93fe33746707da573e31af8 (patch)
treec2012939764d375ed57873d59be6a2d3d4f23835 /gnu/packages
parentf03fa7f9b0b8f8e212ccb4bb5e2eafc4a6913cfc (diff)
downloadguix-b7e3f85e11e66bd1e93fe33746707da573e31af8.tar.gz
guix-b7e3f85e11e66bd1e93fe33746707da573e31af8.zip
gnu: exiv2: Delete static library.
* gnu/packages/image.scm (exiv2)[arguments]: Add a 'delete-static-libraries phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/image.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 713e477b8d..09277514aa 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1357,7 +1357,14 @@ channels.")
(build-system cmake-build-system)
(arguments
'(#:test-target "tests"
- #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON")))
+ #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'delete-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$"))))))))
(propagated-inputs
`(("expat" ,expat)
("zlib" ,zlib)))