mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 20:19:39 +03:00
binutils: gold is not available for riscv target
This commit is contained in:
parent
f7c85bd720
commit
f12a7d932d
@ -1,5 +1,5 @@
|
|||||||
let
|
let
|
||||||
execFormatIsELF = platform: platform.parsed.kernel.execFormat.name == "elf";
|
withGold = platform: platform.parsed.kernel.execFormat.name == "elf" && !platform.isRiscV;
|
||||||
in
|
in
|
||||||
|
|
||||||
{ stdenv
|
{ stdenv
|
||||||
@ -18,7 +18,7 @@ in
|
|||||||
, texinfo
|
, texinfo
|
||||||
, zlib
|
, zlib
|
||||||
|
|
||||||
, enableGold ? execFormatIsELF stdenv.targetPlatform
|
, enableGold ? withGold stdenv.targetPlatform
|
||||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||||
# WARN: Enabling all targets increases output size to a multiple.
|
# WARN: Enabling all targets increases output size to a multiple.
|
||||||
, withAllTargets ? false
|
, withAllTargets ? false
|
||||||
@ -26,7 +26,7 @@ in
|
|||||||
|
|
||||||
# WARN: configure silently disables ld.gold if it's unsupported, so we need to
|
# WARN: configure silently disables ld.gold if it's unsupported, so we need to
|
||||||
# make sure that intent matches result ourselves.
|
# make sure that intent matches result ourselves.
|
||||||
assert enableGold -> execFormatIsELF stdenv.targetPlatform;
|
assert enableGold -> withGold stdenv.targetPlatform;
|
||||||
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user