mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: exempi: Delete the static library.
* gnu/packages/freedesktop.scm (exempi)[arguments]: Add phase to delete libexempi.a.
This commit is contained in:
parent
28d3f49e35
commit
cd533cb497
1 changed files with 12 additions and 1 deletions
|
@ -859,7 +859,18 @@ (define-public exempi
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags (list (string-append "--with-boost="
|
`(#:configure-flags (list (string-append "--with-boost="
|
||||||
(assoc-ref %build-inputs "boost")))))
|
(assoc-ref %build-inputs "boost")))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'remove-static-library
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; XXX: Some tests fail to build with --disable-static due to
|
||||||
|
;; symbols not being visible in the shared library:
|
||||||
|
;; <https://gitlab.freedesktop.org/libopenraw/exempi/-/issues/17>.
|
||||||
|
;; Simply delete the static library instead to save ~4.3 MiB.
|
||||||
|
(delete-file (string-append (assoc-ref outputs "out")
|
||||||
|
"/lib/libexempi.a"))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("boost" ,boost))) ; tests
|
`(("boost" ,boost))) ; tests
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Loading…
Reference in a new issue