3
0
Fork 0
forked from mirrors/nixpkgs

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. */ /* Modify a stdenv so that it uses the Gold linker. */
useGoldLinker = stdenv: stdenv // useGoldLinker = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // { { 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";
}); });
}; };