summary refs log tree commit diff
path: root/gnu/packages/multiprecision.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-02-11 12:02:17 +0200
committerEfraim Flashner <efraim@flashner.co.il>2021-02-11 12:04:37 +0200
commitc9c68344ba1504d1ffae14a3c4f4bd11f595cc47 (patch)
tree27952744f82ad14dc80fb3c661d5528560771f70 /gnu/packages/multiprecision.scm
parenta643deac2de81755a1843a3b41dd53857678bebc (diff)
downloadguix-c9c68344ba1504d1ffae14a3c4f4bd11f595cc47.tar.gz
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.
Diffstat (limited to 'gnu/packages/multiprecision.scm')
-rw-r--r--gnu/packages/multiprecision.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/packages/multiprecision.scm b/gnu/packages/multiprecision.scm
index 21605c4003..733e6548b9 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)