mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
gnu: openssl: Move static libraries to "static" output.
* gnu/packages/tls.scm (openssl)[outputs]: New field. [arguments]: Add 'move-static-libraries' phase.
This commit is contained in:
parent
d03781c3bc
commit
8c78aeb724
1 changed files with 15 additions and 0 deletions
|
@ -211,6 +211,8 @@ (define-public openssl
|
||||||
(patches (search-patches "openssl-runpath.patch"
|
(patches (search-patches "openssl-runpath.patch"
|
||||||
"openssl-c-rehash-in.patch"))))
|
"openssl-c-rehash-in.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(outputs '("out"
|
||||||
|
"static")) ;6MiB of .a files
|
||||||
(native-inputs `(("perl" ,perl)))
|
(native-inputs `(("perl" ,perl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:disallowed-references (,perl)
|
`(#:disallowed-references (,perl)
|
||||||
|
@ -267,6 +269,19 @@ (define-public openssl
|
||||||
(find-files (string-append out "/lib")
|
(find-files (string-append out "/lib")
|
||||||
"\\.so"))
|
"\\.so"))
|
||||||
#t)))
|
#t)))
|
||||||
|
(add-after 'install 'move-static-libraries
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; Move static libraries to the "static" output.
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(lib (string-append out "/lib"))
|
||||||
|
(static (assoc-ref outputs "static"))
|
||||||
|
(slib (string-append static "/lib")))
|
||||||
|
(mkdir-p slib)
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(install-file file slib)
|
||||||
|
(delete-file file))
|
||||||
|
(find-files lib "\\.a$"))
|
||||||
|
#t)))
|
||||||
(add-before
|
(add-before
|
||||||
'patch-source-shebangs 'patch-tests
|
'patch-source-shebangs 'patch-tests
|
||||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
|
|
Loading…
Reference in a new issue