parent
							
								
									ef4c92fca4
								
							
						
					
					
						commit
						259995d089
					
				| @ -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: 11%{?dist} | Release: 12%{?dist} | ||||||
| License: GPLv3+ | License: GPLv3+ | ||||||
| URL: https://sourceware.org/binutils | URL: https://sourceware.org/binutils | ||||||
| 
 | 
 | ||||||
| @ -299,10 +299,10 @@ 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: %{?scl_prefix}gcc | ||||||
| # BuildRequires: %%{?scl_prefix}gcc-c++ | BuildRequires: %{?scl_prefix}gcc-c++ | ||||||
| # %%define gcc_for_libraries %%{?_scl_root}/usr/bin/gcc | %define gcc_for_libraries %{?_scl_root}/usr/bin/gcc | ||||||
| # %%define gxx_for_libraries %%{?_scl_root}/usr/bin/g++ | %define gxx_for_libraries %{?_scl_root}/usr/bin/g++ | ||||||
| 
 | 
 | ||||||
| BuildRequires: gcc | BuildRequires: gcc | ||||||
| BuildRequires: gcc-c++ | BuildRequires: gcc-c++ | ||||||
| @ -961,25 +961,27 @@ install_binutils() | |||||||
|         %make_install DESTDIR=%{buildroot} MAKEINFO=true |         %make_install DESTDIR=%{buildroot} MAKEINFO=true | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
|         # Rebuild libiberty.a with -fPIC. |         # Rebuild the static libiaries with -fPIC. | ||||||
|         # Future: Remove it together with its header file, projects should bundle it. | 	# It would be nice to build the static libraries with -fno-lto so that | ||||||
|  | 	# they can be used by programs that are built with a different version | ||||||
|  | 	# of GCC from the one used to build the libraries, but this will trigger | ||||||
|  | 	# warnings from annocheck. | ||||||
|  | 
 | ||||||
|  |         # Future: Remove libiberty together with its header file, projects should bundle it. | ||||||
|         %make_build -s -C libiberty clean |         %make_build -s -C libiberty clean | ||||||
|         %set_build_flags |         %set_build_flags | ||||||
|         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C libiberty |         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C libiberty | ||||||
| 
 | 
 | ||||||
|         # Rebuild libbfd.a with -fPIC. |  | ||||||
|         # Without the hidden visibility the 3rd party shared libraries would export |         # Without the hidden visibility the 3rd party shared libraries would export | ||||||
|         # the bfd non-stable ABI. |         # the bfd non-stable ABI. | ||||||
|         %make_build -s -C bfd clean |         %make_build -s -C bfd clean | ||||||
|         %set_build_flags |         %set_build_flags | ||||||
|         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS -fvisibility=hidden" LD=%gcc_for_libraries -C bfd |         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS -fvisibility=hidden" LD=%gcc_for_libraries -C bfd | ||||||
| 
 | 
 | ||||||
|         # Rebuild libopcodes.a with -fPIC. |  | ||||||
|         %make_build -s -C opcodes clean |         %make_build -s -C opcodes clean | ||||||
|         %set_build_flags |         %set_build_flags | ||||||
|         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C opcodes |         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C opcodes | ||||||
| 
 | 
 | ||||||
|         # Rebuild libsframe.a with -fPIC. |  | ||||||
|         %make_build -s -C libsframe clean |         %make_build -s -C libsframe clean | ||||||
|         %set_build_flags |         %set_build_flags | ||||||
|         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C libsframe |         %make_build -s CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C libsframe | ||||||
| @ -1278,6 +1280,10 @@ exit 0 | |||||||
| 
 | 
 | ||||||
| #---------------------------------------------------------------------------- | #---------------------------------------------------------------------------- | ||||||
| %changelog | %changelog | ||||||
|  | * Mon Jun 26 2023 Nick Clifton  <nickc@redhat.com> - 2.40-12 | ||||||
|  | - Spec File: Enable building with GTS-13 gcc.  (#2217911) | ||||||
|  | - Spec File: Build static libraries with -fno-lto. | ||||||
|  | 
 | ||||||
| * Mon Jun 12 2023 Nick Clifton  <nickc@redhat.com> - 2.40-11 | * Mon Jun 12 2023 Nick Clifton  <nickc@redhat.com> - 2.40-11 | ||||||
| - Spec File: Use the correct alternatives.  (#2209151 and #2213913) | - Spec File: Use the correct alternatives.  (#2209151 and #2213913) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user