gnu: exiv2: Delete static library.
* gnu/packages/image.scm (exiv2)[arguments]: Add a 'delete-static-libraries phase.
This commit is contained in:
parent
f03fa7f9b0
commit
b7e3f85e11
1 changed files with 8 additions and 1 deletions
|
@ -1357,7 +1357,14 @@ channels.")
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "tests"
|
'(#: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
|
(propagated-inputs
|
||||||
`(("expat" ,expat)
|
`(("expat" ,expat)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
|
|
Reference in a new issue