guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: crypto++: Create versioned shared library links.


From: guix-commits
Subject: 01/01: gnu: crypto++: Create versioned shared library links.
Date: Mon, 30 Dec 2019 18:34:40 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit f92ebd57e4edeae2cbae85e978e23655f8733f16
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Tue Dec 31 00:03:58 2019 +0100

    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.
---
 gnu/packages/crypto.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index db39166..dd49c12 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -633,6 +633,16 @@ data on your platform, so the seed itself will be as 
random as possible.
            (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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]