about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-02-22 21:55:27 +0100
committerPeter Simons <simons@cryp.to>2015-03-09 15:55:24 +0100
commite2b033cad945134f7205e052562d0a146987331a (patch)
tree2924319707643fe9d567b8eda65cdf80d0820b54 /pkgs/development/compilers
parentaa564bbac53fe8977f551b06c39458389747d3e7 (diff)
downloadnixlib-e2b033cad945134f7205e052562d0a146987331a.tar
nixlib-e2b033cad945134f7205e052562d0a146987331a.tar.gz
nixlib-e2b033cad945134f7205e052562d0a146987331a.tar.bz2
nixlib-e2b033cad945134f7205e052562d0a146987331a.tar.lz
nixlib-e2b033cad945134f7205e052562d0a146987331a.tar.xz
nixlib-e2b033cad945134f7205e052562d0a146987331a.tar.zst
nixlib-e2b033cad945134f7205e052562d0a146987331a.zip
ghc: re-instate code that configures statically linked builds by default
The compiler should not expect to have dynamic versions of all libraries
available, because that configuration doesn't play along nicely with statically
linked libraries.

Fixes https://github.com/NixOS/nixpkgs/issues/6399.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/ghc/7.8.4.nix1
-rw-r--r--pkgs/development/compilers/ghc/head.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/7.8.4.nix b/pkgs/development/compilers/ghc/7.8.4.nix
index e9e1e1eafd03..c4000fc86c25 100644
--- a/pkgs/development/compilers/ghc/7.8.4.nix
+++ b/pkgs/development/compilers/ghc/7.8.4.nix
@@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
     libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
     libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses}/include"
     libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses}/lib"
+    DYNAMIC_BY_DEFAULT = NO
     ${stdenv.lib.optionalString stdenv.isDarwin ''
       libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include"
       libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib"
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index 0363855977f7..4cde21dbcc2a 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -7,6 +7,7 @@ let
     libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
     libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes="${ncurses}/include"
     libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-libraries="${ncurses}/lib"
+    DYNAMIC_BY_DEFAULT = NO
     ${stdenv.lib.optionalString stdenv.isDarwin ''
       libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes="${libiconv}/include"
       libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries="${libiconv}/lib"