guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: libtomcrypt: Patch pkg-config file to pull libtommath.


From: guix-commits
Subject: 01/02: gnu: libtomcrypt: Patch pkg-config file to pull libtommath.
Date: Thu, 11 Feb 2021 05:05:25 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit c9c68344ba1504d1ffae14a3c4f4bd11f595cc47
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Feb 11 12:02:17 2021 +0200

    gnu: libtomcrypt: Patch pkg-config file to pull libtommath.
    
    * gnu/packages/multiprecision.scm (libtomcrypt)[arguments]: Adjust
    'prepare-build phase to patch libtomcrypt.pc to link tommath.
---
 gnu/packages/multiprecision.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/multiprecision.scm b/gnu/packages/multiprecision.scm
index 21605c4..733e654 100644
--- a/gnu/packages/multiprecision.scm
+++ b/gnu/packages/multiprecision.scm
@@ -353,6 +353,9 @@ multiplies.")
              ;; default makefile target.
              (delete-file "makefile")
              (symlink "makefile.shared" "makefile")
+             ;; We link to libtommath, so we need to add it to the pc file
+             (substitute* "libtomcrypt.pc.in"
+               (("-ltomcrypt") "-ltomcrypt -ltommath"))
              #t))
          (add-after 'build 'build-static
            (lambda* (#:key make-flags #:allow-other-keys)



reply via email to

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