ghc821-binary: avoid mass-rebuild by using old dynamic linker string

This commit is contained in:
Will Dietz 2018-07-11 08:26:36 -05:00
parent b4c91a3e1a
commit e065779af1

View File

@ -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*";