spec: added target_has_gold flag

Apparently gold does not support neither to riscv nor loongarch
This commit is contained in:
Алексей Шепляков 2023-01-31 17:36:21 +04:00
parent 1ade77ca76
commit c103bec4bb

View File

@ -11,6 +11,7 @@
%define target_ld_linux /lib64/ld-linux-aarch64.so.1
%define target_libdir lib64
%define target_has_itm 1
%define target_has_gold 1
%endif
%if "%target_arch" == "arm"
@ -19,6 +20,7 @@
%define target_ld_linux /lib/ld-linux-armhf.so.3
%define target_libdir lib
%define target_has_itm 1
%define target_has_gold 1
# armhf: use the same arch/fp instruction set as the native compiler
%define arm_arch armv7-a
%define arm_fp_isa vfpv3-d16
@ -30,6 +32,7 @@
%define target_qemu_arch mipsel
%define target_ld_linux /lib/ld.so.1
%define target_libdir lib
%define target_has_gold 1
%endif
@ -668,14 +671,14 @@ qemu-%target_qemu_arch-static ./bye_asm || exit 13
%_bindir/%target-ar
%_bindir/%target-as
%_bindir/%target-c++filt
%if "%target_arch" != "riscv64"
%if 0%{?target_has_gold}
%_bindir/%target-dwp
%endif
%_bindir/%target-elfedit
%_bindir/%target-gprof
%_bindir/%target-ld
%_bindir/%target-ld.bfd
%if "%target_arch" != "riscv64"
%if 0%{?target_has_gold}
%_bindir/%target-ld.gold
%endif
%_bindir/%target-nm