useGoldLinker: Fix appending to $NIX_CFLAGS_LINK
This commit is contained in:
@@ -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";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user