mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: xz: Move liblzma.a to separate output.
* gnu/packages/compression.scm (xz)[arguments, outputs]: New fields. * gnu/packages/make-bootstrap.scm (%static-inputs)[xz]: Don't inherit outputs.
This commit is contained in:
parent
d52680eec0
commit
5b2da2a659
2 changed files with 18 additions and 0 deletions
|
@ -425,6 +425,23 @@ (define-public xz
|
|||
(base32
|
||||
"0ibi2zsfaz6l756spjwc5rayf4ckgc9hwmy8qinppcyk4svz64mm"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'move-static-lib
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
(static (assoc-ref outputs "static")))
|
||||
(mkdir-p (string-append static "/lib"))
|
||||
(rename-file (string-append out "/lib/liblzma.a")
|
||||
(string-append static "/lib/liblzma.a"))
|
||||
;; Remove reference to the static library from the .la file
|
||||
;; so Libtool does the right thing when both the shared and
|
||||
;; static library is available.
|
||||
(substitute* (string-append out "/lib/liblzma.la")
|
||||
(("^old_library='liblzma.a'") "old_library=''"))
|
||||
#t))))))
|
||||
(outputs '("out" "static"))
|
||||
(synopsis "General-purpose data compression")
|
||||
(description
|
||||
"XZ Utils is free general-purpose data compression software with high
|
||||
|
|
|
@ -159,6 +159,7 @@ (define %static-inputs
|
|||
"LDFLAGS = -static"))
|
||||
#t))))))))
|
||||
(xz (package (inherit xz)
|
||||
(outputs '("out"))
|
||||
(arguments
|
||||
`(#:strip-flags '("--strip-all")
|
||||
#:phases (modify-phases %standard-phases
|
||||
|
|
Loading…
Reference in a new issue