Bootstrap

This commit is contained in:
eabdullin 2023-10-13 11:45:33 +03:00
parent 34fb62d516
commit d0e6e91825

View File

@ -9,7 +9,7 @@ BuildRequires: scl-utils-build
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: %{?scl_prefix}binutils Name: %{?scl_prefix}binutils
Version: 2.40 Version: 2.40
Release: 14%{?dist} Release: 14%{?dist}.bootstrap
License: GPLv3+ License: GPLv3+
URL: https://sourceware.org/binutils URL: https://sourceware.org/binutils
@ -84,7 +84,7 @@ URL: https://sourceware.org/binutils
%endif %endif
# Default: Not bootstrapping. # Default: Not bootstrapping.
%bcond_with bootstrap %bcond_without bootstrap
# Default: Not debug # Default: Not debug
%bcond_with debug %bcond_with debug
# Default: Always build documentation. # Default: Always build documentation.
@ -299,15 +299,15 @@ BuildRequires: clang compiler-rt
# (libfd.a, libopcodes.a libiberty.a libsframe.a) use the same LTO version as the one # (libfd.a, libopcodes.a libiberty.a libsframe.a) use the same LTO version as the one
# that will be used by consumers of GTS binutils. # that will be used by consumers of GTS binutils.
# Note - during GTS bootstrap these have to be changed to the systemOS versions. # Note - during GTS bootstrap these have to be changed to the systemOS versions.
BuildRequires: %{?scl_prefix}gcc BuildRequires: gcc
BuildRequires: %{?scl_prefix}annobin-plugin-gcc BuildRequires: annobin-plugin-gcc
BuildRequires: %{?scl_prefix}gcc-c++ BuildRequires: gcc-c++
%define gcc_for_libraries %{?_scl_root}/usr/bin/gcc %define gcc_for_libraries /usr/bin/gcc
%define gxx_for_libraries %{?_scl_root}/usr/bin/g++ %define gxx_for_libraries /usr/bin/g++
# Note - during GTS bootstrap it may be necessary to build the binutils without # Note - during GTS bootstrap it may be necessary to build the binutils without
# annobin annotations. # annobin annotations.
# %%undefine _annotated_build %%undefine _annotated_build
%endif %endif
@ -1212,8 +1212,8 @@ exit 0
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%exclude %{_libdir}/libbfd.so %exclude %{_libdir}/libbfd.so
%exclude %{_libdir}/libopcodes.so %exclude %{_libdir}/libopcodes.so
%exclude %{_libdir}/libctf.a # %exclude %{_libdir}/libctf.a
%exclude %{_libdir}/libctf-nobfd.a # %exclude %{_libdir}/libctf-nobfd.a
%dir %{_libdir}/bfd-plugins %dir %{_libdir}/bfd-plugins
# %%{_libdir}/bfd-plugins/libdep.a # %%{_libdir}/bfd-plugins/libdep.a