gnu: ganeti: Tell GHC to use shared libraries.

Fixes <https://bugs.gnu.org/42934>.
Reported by Marius Bakke <marius@gnu.org>.

* gnu/packages/virtualization.scm (ganeti)[arguments]: Add a phase
that tells GHC to use shared libraries.
This commit is contained in:
Timothy Sample 2020-08-19 23:40:04 -04:00
parent 991ca49961
commit 856def7bb3
No known key found for this signature in database
GPG key ID: 2AC6A5EC1C357C59

View file

@ -510,7 +510,11 @@ (define-public ganeti
(("\\$\\(GHC\\)")
"$(GHC) -package-db=../package.conf.d"))
#t))
(add-after 'configure 'make-ghc-use-shared-libraries
(lambda _
(substitute* "Makefile"
(("HFLAGS =") "HFLAGS = -dynamic -fPIC"))
#t))
(add-after 'configure 'fix-installation-directories
(lambda _
(substitute* "Makefile"