summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimothy Sample <samplet@ngyro.com>2020-08-19 23:40:04 -0400
committerTimothy Sample <samplet@ngyro.com>2020-08-19 23:58:47 -0400
commit856def7bb3b4af85a1325bc732e81d705156a482 (patch)
treef1e6164315afcfacc8b25988e24c07ab0a75af78
parent991ca49961d1066f7890644a40d629aca944f5b9 (diff)
downloadguix-856def7bb3b4af85a1325bc732e81d705156a482.tar.gz
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.
-rw-r--r--gnu/packages/virtualization.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index d0223bce3d..dbd165dbfc 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -510,7 +510,11 @@ server and embedded PowerPC, and S390 guests.")
                (("\\$\\(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"