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.
This commit is contained in:
Efraim Flashner 2021-02-11 12:02:17 +02:00
parent a643deac2d
commit c9c68344ba
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -353,6 +353,9 @@ (define-public libtomcrypt
;; 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)