From 1978fa444dda07aa2057f24511b0c39502b461eb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 16 Mar 2018 21:44:17 +0100 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/generic-builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 43ab69689d9..9e11b870896 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