forked from mirrors/nixpkgs
useGoldLinker: Fix appending to $NIX_CFLAGS_LINK
This commit is contained in:
parent
23365282b0
commit
a58356c953
|
@ -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";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue