[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/44: build-system/haskell: Configure to link with shared libraries.
From: |
guix-commits |
Subject: |
07/44: build-system/haskell: Configure to link with shared libraries. |
Date: |
Fri, 17 Jul 2020 08:33:31 -0400 (EDT) |
rekado pushed a commit to branch wip-haskell-updates
in repository guix.
commit b3151e6d9ed283ea770ec972f285b016bab62c5c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jun 24 23:46:57 2020 +0200
build-system/haskell: Configure to link with shared libraries.
* guix/build/haskell-build-system.scm (configure): Add configure flags to
build shared libraries by default, to generate position independent code,
and
to set the RUNPATH.
---
guix/build/haskell-build-system.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/guix/build/haskell-build-system.scm
b/guix/build/haskell-build-system.scm
index e745c49..15ecab2 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -91,6 +91,12 @@ and parameters ~s~%"
,@(if tests?
'("--enable-tests")
'())
+ ;; Build and link with shared libraries
+ "--enable-shared"
+ "--enable-executable-dynamic"
+ "--ghc-option=-fPIC"
+ ,(string-append "--ghc-option=-optl=-Wl,-rpath=" (or lib
out)
+ "/lib/$compiler/$pkg-$version")
,@configure-flags)))
;; Cabal errors if GHC_PACKAGE_PATH is set during 'configure', so unset
;; and restore it.
- 01/44: gnu: Add ghc-8.8., (continued)
- 01/44: gnu: Add ghc-8.8., guix-commits, 2020/07/17
- 02/44: build-system/haskell: Support parallel builds., guix-commits, 2020/07/17
- 03/44: build-system/haskell: Add default output "static"., guix-commits, 2020/07/17
- 04/44: haskell-build-system: register: Respect lib output., guix-commits, 2020/07/17
- 06/44: build-system/haskell: Simplify configure step., guix-commits, 2020/07/17
- 08/44: gnu: Add "static" output to Haskell packages with custom outputs., guix-commits, 2020/07/17
- 13/44: gnu: ghc-crypto-api-tests: Add "doc" output., guix-commits, 2020/07/17
- 12/44: gnu: ghc-hspec: Add "doc" output., guix-commits, 2020/07/17
- 14/44: gnu: ghc-cryptonite: Add "doc" output., guix-commits, 2020/07/17
- 16/44: gnu: ghc-aeson: Add "doc" output., guix-commits, 2020/07/17
- 07/44: build-system/haskell: Configure to link with shared libraries.,
guix-commits <=
- 05/44: haskell-build-system: register: Remove references to the doc output., guix-commits, 2020/07/17
- 09/44: gnu: ghc-libyaml: Add libyaml via --extra-lib-dirs., guix-commits, 2020/07/17
- 21/44: gnu: ghc-cmdargs: Add "doc" output., guix-commits, 2020/07/17
- 22/44: gnu: ghc-conduit: Add "doc" output., guix-commits, 2020/07/17
- 10/44: gnu: ghc-hslua: Add --extra-lib-dirs configure option., guix-commits, 2020/07/17
- 11/44: gnu: ghc-8.6: Remove unnecessary references., guix-commits, 2020/07/17
- 15/44: gnu: ghc-blaze-html: Add "doc" output., guix-commits, 2020/07/17
- 17/44: gnu: ghc-hxt: Add "doc" output., guix-commits, 2020/07/17
- 18/44: gnu: ghc-base-compat: Add "doc" output., guix-commits, 2020/07/17
- 20/44: gnu: ghc-base-prelude: Add "doc" output., guix-commits, 2020/07/17