|
|
|
@ -15,7 +15,7 @@ in |
|
|
|
|
, perl |
|
|
|
|
, texinfo |
|
|
|
|
, zlib |
|
|
|
|
, gold ? execFormatIsELF stdenv.targetPlatform |
|
|
|
|
, enableGold ? execFormatIsELF stdenv.targetPlatform |
|
|
|
|
, enableShared ? !stdenv.hostPlatform.isStatic |
|
|
|
|
# Enabling all targets increases output size to a multiple. |
|
|
|
|
, withAllTargets ? false, libbfd, libopcodes |
|
|
|
@ -23,7 +23,7 @@ in |
|
|
|
|
|
|
|
|
|
# configure silently disables ld.gold if it's unsupported, |
|
|
|
|
# so we need to make sure that intent matches result ourselves. |
|
|
|
|
assert gold -> execFormatIsELF stdenv.targetPlatform; |
|
|
|
|
assert enableGold -> execFormatIsELF stdenv.targetPlatform; |
|
|
|
|
|
|
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus |
|
|
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or |
|
|
|
@ -147,7 +147,7 @@ stdenv.mkDerivation { |
|
|
|
|
# The easiest thing for us to do is not leave it to chance, and force |
|
|
|
|
# the program prefix to be what we want it to be. |
|
|
|
|
"--program-prefix=${targetPrefix}" |
|
|
|
|
] ++ lib.optionals gold [ |
|
|
|
|
] ++ lib.optionals enableGold [ |
|
|
|
|
"--enable-gold" |
|
|
|
|
"--enable-plugins" |
|
|
|
|
]; |
|
|
|
@ -167,7 +167,7 @@ stdenv.mkDerivation { |
|
|
|
|
|
|
|
|
|
passthru = { |
|
|
|
|
inherit targetPrefix; |
|
|
|
|
hasGold = gold; |
|
|
|
|
hasGold = enableGold; |
|
|
|
|
isGNU = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|