Set _package_note_linker on arm

On ARM, the default linker is lld when using the clange toolchain,
so specify that as the _package_note_linker. This will use the
-T rather than -dT option for the package note script.

Ideally this would be handled in a more central location.
This commit is contained in:
Nikita Popov 2022-01-25 16:35:13 +01:00
parent 3c9de0ccf8
commit 6cee6aebe6

View File

@ -66,6 +66,11 @@
%global llvm_triple %{_host} %global llvm_triple %{_host}
%endif %endif
# We build with clang, in which case lld is the default linker on arm.
%ifarch %{arm}
%global _package_note_linker lld
%endif
Name: %{pkg_name} Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist} Release: 1%{?dist}