useGoldLinker: Fix appending to $NIX_CFLAGS_LINK

This commit is contained in:
Eelco Dolstra 2015-05-04 14:00:12 +02:00
parent 23365282b0
commit a58356c953

View File

@ -232,7 +232,7 @@ rec {
/* Modify a stdenv so that it uses the Gold linker. */
useGoldLinker = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
NIX_CFLAGS_LINK = toString (args.NIX_CFLAGS_COMPILE or "") + " -fuse-ld=gold";
NIX_CFLAGS_LINK = toString (args.NIX_CFLAGS_LINK or "") + " -fuse-ld=gold";
});
};