Loading pkgs/development/tools/misc/binutils/default.nix +6 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ in , zlib , enableGold ? withGold stdenv.targetPlatform , enableGoldDefault ? false , enableShared ? !stdenv.hostPlatform.isStatic # WARN: Enabling all targets increases output size to a multiple. , withAllTargets ? false Loading @@ -26,6 +27,7 @@ in # WARN: configure silently disables ld.gold if it's unsupported, so we need to # make sure that intent matches result ourselves. assert enableGold -> withGold stdenv.targetPlatform; assert enableGoldDefault -> enableGold; let Loading Loading @@ -217,8 +219,10 @@ stdenv.mkDerivation (finalAttrs: { "--with-lib-path=:" ] ++ lib.optionals withAllTargets [ "--enable-targets=all" ] ++ lib.optionals enableGold [ "--enable-gold" "--enable-plugins" ] ++ (if enableShared ++ lib.optionals enableGold [ "--enable-gold${lib.optionalString enableGoldDefault "=default"}" "--enable-plugins" ] ++ (if enableShared then [ "--enable-shared" "--disable-static" ] else [ "--disable-shared" "--enable-static" ]) ; Loading pkgs/top-level/all-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -18392,7 +18392,7 @@ with pkgs; in if linker == "lld" then llvmPackages.bintools-unwrapped else if linker == "cctools" then darwin.binutils-unwrapped else if linker == "bfd" then binutils-unwrapped else if linker == "gold" then binutils-unwrapped else if linker == "gold" then binutils-unwrapped.override { enableGoldDefault = true; } else null; bintoolsNoLibc = wrapBintoolsWith { bintools = bintools-unwrapped; Loading
pkgs/development/tools/misc/binutils/default.nix +6 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ in , zlib , enableGold ? withGold stdenv.targetPlatform , enableGoldDefault ? false , enableShared ? !stdenv.hostPlatform.isStatic # WARN: Enabling all targets increases output size to a multiple. , withAllTargets ? false Loading @@ -26,6 +27,7 @@ in # WARN: configure silently disables ld.gold if it's unsupported, so we need to # make sure that intent matches result ourselves. assert enableGold -> withGold stdenv.targetPlatform; assert enableGoldDefault -> enableGold; let Loading Loading @@ -217,8 +219,10 @@ stdenv.mkDerivation (finalAttrs: { "--with-lib-path=:" ] ++ lib.optionals withAllTargets [ "--enable-targets=all" ] ++ lib.optionals enableGold [ "--enable-gold" "--enable-plugins" ] ++ (if enableShared ++ lib.optionals enableGold [ "--enable-gold${lib.optionalString enableGoldDefault "=default"}" "--enable-plugins" ] ++ (if enableShared then [ "--enable-shared" "--disable-static" ] else [ "--disable-shared" "--enable-static" ]) ; Loading
pkgs/top-level/all-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -18392,7 +18392,7 @@ with pkgs; in if linker == "lld" then llvmPackages.bintools-unwrapped else if linker == "cctools" then darwin.binutils-unwrapped else if linker == "bfd" then binutils-unwrapped else if linker == "gold" then binutils-unwrapped else if linker == "gold" then binutils-unwrapped.override { enableGoldDefault = true; } else null; bintoolsNoLibc = wrapBintoolsWith { bintools = bintools-unwrapped;