diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-10-23 12:41:04 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-10-23 13:24:43 +0200 |
commit | b7e3f85e11e66bd1e93fe33746707da573e31af8 (patch) | |
tree | c2012939764d375ed57873d59be6a2d3d4f23835 /gnu | |
parent | f03fa7f9b0b8f8e212ccb4bb5e2eafc4a6913cfc (diff) | |
download | guix-b7e3f85e11e66bd1e93fe33746707da573e31af8.tar guix-b7e3f85e11e66bd1e93fe33746707da573e31af8.tar.gz |
gnu: exiv2: Delete static library.
* gnu/packages/image.scm (exiv2)[arguments]:
Add a 'delete-static-libraries phase.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/image.scm | 9 |
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))) |