useGoldLinker: Fix appending to $NIX_CFLAGS_LINK
commita58356c953d7a938e33dc801ee1d445f2d229851
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateMon 4 May 2015, 14:00 (12 years ago)
parent2336528
pkgs/stdenv/adapters.nix+1−1
@@ -232,7 +232,7 @@ rec {
232232 /* Modify a stdenv so that it uses the Gold linker. */
233233 useGoldLinker = stdenv: stdenv //
234234 { mkDerivation = args: stdenv.mkDerivation (args // {
235− NIX_CFLAGS_LINK = toString (args.NIX_CFLAGS_COMPILE or "") + " -fuse-ld=gold";
235+ NIX_CFLAGS_LINK = toString (args.NIX_CFLAGS_LINK or "") + " -fuse-ld=gold";
236236 });
237237 };
238238