mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 05:39:41 -05:00
gnu: crypto++: Create versioned shared library links.
This fixes the build of dependents like amule. * gnu/packages/crypto.scm (crypto++)[arguments]: Add an ‘install-shared-library-links’ phase.
This commit is contained in:
parent
022ad24c41
commit
f92ebd57e4
1 changed files with 10 additions and 0 deletions
|
@ -633,6 +633,16 @@ (define-public crypto++
|
|||
(lambda _
|
||||
;; By default, only the static library is built.
|
||||
(invoke "make" "shared")))
|
||||
(add-after 'install 'install-shared-library-links
|
||||
;; By default, only .so and .so.x.y.z are installed.
|
||||
;; Create all the ‘intermediates’ expected by dependent packages.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(lib (string-append out "/lib")))
|
||||
(with-directory-excursion lib
|
||||
(symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8.0")
|
||||
(symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8")
|
||||
#t))))
|
||||
(add-after 'install 'install-pkg-config
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue