nixpkgs/pkgs/development/tools/misc/binutils
sternenseemann 4c75874560 binutils-unwrapped: expose if built with ld.gold
ld.gold is “A new, faster, ELF only linker”. Thus we only should pass
the configure flag --with-gold if our target platform will actually
support gold (in which case binutil's configure script silently
disables it).

With this change, not only will configureFlags represent the actual
configuration more closely, but we can also expose if the binutils
derivation contains ld.gold via a passthru attr. Specifically this
means that:

    nix-repl> pkgsCross.mingwW64.stdenv.cc.bintools.bintools.hasGold
    false

The intended way to use this is to check
`stdenv.cc.bintools.bintools or false` which returns accurate results
regardless of the actual linker derivation.

TODO: maybe also add hasGold to binutils wrapper as it also symlinks
ld.gold in?
2021-08-18 01:21:44 +02:00
..
always-search-rpath.patch
bfd-elf-Dont-read-non-existing-secondary-relocs.patch binutils: Apply patch to fix 300x strip performance regression. Fixes #129467 2021-07-11 12:47:34 +00:00
build-components-separately.patch
CVE-2020-35448.patch
default.nix binutils-unwrapped: expose if built with ld.gold 2021-08-18 01:21:44 +02:00
deterministic.patch
disambiguate-arm-targets.patch
R_ARM_COPY.patch
support-ios.patch