summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-07-11 06:26:21 -0500
committerWill Dietz <w@wdtz.org>2018-07-11 11:14:18 -0500
commitb4c91a3e1ab5b9065a317b6387abdaa093e5bf11 (patch)
tree00ac1ed658c104b99355be3386b146af284b4725 /pkgs/development/compilers/ghc
parent4a1d311c4941839b0d1abf14df2c50cbc5434009 (diff)
downloadnixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar.gz
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar.bz2
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar.lz
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar.xz
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.tar.zst
nixlib-b4c91a3e1ab5b9065a317b6387abdaa093e5bf11.zip
ghc821-binary: disable ld override w/musl
Fixes conftest failure that I believe ends up
using the wrong dynamic linker.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/8.2.1-binary.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/8.2.1-binary.nix b/pkgs/development/compilers/ghc/8.2.1-binary.nix
index 4a3c817e9fcb..1eeea19b6b0a 100644
--- a/pkgs/development/compilers/ghc/8.2.1-binary.nix
+++ b/pkgs/development/compilers/ghc/8.2.1-binary.nix
@@ -113,7 +113,8 @@ stdenv.mkDerivation rec {
   configureFlags = [
     "--with-gmp-libraries=${stdenv.lib.getLib gmp}/lib"
     "--with-gmp-includes=${stdenv.lib.getDev gmp}/include"
-  ] ++ stdenv.lib.optional stdenv.isDarwin "--with-gcc=${./gcc-clang-wrapper.sh}";
+  ] ++ stdenv.lib.optional stdenv.isDarwin "--with-gcc=${./gcc-clang-wrapper.sh}"
+    ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-ld-override";
 
   # Stripping combined with patchelf breaks the executables (they die
   # with a segfault or the kernel even refuses the execve). (NIXPKGS-85)