From e065779af185b07566b9bbc4d2fc2ea70fdf3856 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 11 Jul 2018 08:26:36 -0500 Subject: [PATCH] ghc821-binary: avoid mass-rebuild by using old dynamic linker string --- pkgs/development/compilers/ghc/8.2.1-binary.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/8.2.1-binary.nix b/pkgs/development/compilers/ghc/8.2.1-binary.nix index 1eeea19b6b0..bfb9c4cd616 100644 --- a/pkgs/development/compilers/ghc/8.2.1-binary.nix +++ b/pkgs/development/compilers/ghc/8.2.1-binary.nix @@ -16,7 +16,8 @@ let glibcDynLinker = assert stdenv.isLinux; if stdenv.hostPlatform.libc == "glibc" then - stdenv.cc.bintools.dynamicLinker + # Could be stdenv.cc.bintools.dynamicLinker, keeping as-is to avoid rebuild. + ''"$(cat $NIX_CC/nix-support/dynamic-linker)"'' else "${stdenv.lib.getLib glibc}/lib/ld-linux*";