about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2018-03-16 21:44:17 +0100
committerPeter Simons <simons@cryp.to>2018-03-17 08:21:23 +0100
commit1978fa444dda07aa2057f24511b0c39502b461eb (patch)
treec02927fbfb1677501d14b1d9bdb4d1942e818ecd /pkgs/development/haskell-modules
parentdb5be10a4a1a5949c50f838101936f1bbddf4f59 (diff)
downloadnixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar.gz
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar.bz2
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar.lz
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar.xz
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.tar.zst
nixlib-1978fa444dda07aa2057f24511b0c39502b461eb.zip
haskell-generic-builder: disable shared executable linking by default
This change raises the question of whether we should disable building of shared
libraries altogether (since we don't link them). Unfortunately, we can't,
because GHC expects shared libraries to be around when building and running
test suites, and no amount of passing --disable-shared flags at configure time
changes the fact. I *guess* that's related to the DYNAMIC_GHC_PROGRAMS = YES
flag we set when building GHC itself, but I haven't investigated it further
yet.

Closes https://github.com/NixOS/nixpkgs/issues/29011.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index 43ab69689d9e..9e11b8708961 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -28,7 +28,7 @@ in
 , enableExecutableProfiling ? false
 , profilingDetail ? "all-functions"
 # TODO enable shared libs for cross-compiling
-, enableSharedExecutables ? ((ghc.isGhcjs or false) || stdenv.lib.versionOlder "7.7" ghc.version)
+, enableSharedExecutables ? false
 , enableSharedLibraries ? ((ghc.isGhcjs or false) || stdenv.lib.versionOlder "7.7" ghc.version)
 , enableDeadCodeElimination ? (!stdenv.isDarwin)  # TODO: use -dead_strip  for darwin
 , enableStaticLibraries ? true