tools/gnu: Enable LTO in RSB tools

The change enables the building of LTO into RTEMS tools. Compiler
options are required to enable use in an application.
This commit is contained in:
Chris Johns 2022-06-15 20:46:36 +10:00
parent e73a258a3a
commit 1a24c6cfdb
2 changed files with 4 additions and 12 deletions

View File

@ -26,14 +26,11 @@ URL: http://sources.redhat.com/binutils
%define allow_cxc %define allow_cxc
# #
# Default gold and LTO to disable. # Default gold to disable.
# #
%ifn %{defined with_gold} %ifn %{defined with_gold}
%define with_gold 0 %define with_gold 0
%endif %endif
%ifn %{defined with_lto}
%define with_lto 0
%endif
# #
# Source # Source
@ -72,7 +69,6 @@ URL: http://sources.redhat.com/binutils
%{?with_deterministic_archives:--enable-deterministic-archives} \ %{?with_deterministic_archives:--enable-deterministic-archives} \
%{?with_64_bit_bfd:--enable-64-bit-bfd} \ %{?with_64_bit_bfd:--enable-64-bit-bfd} \
%{?with_gold:--enable-gold=yes} \ %{?with_gold:--enable-gold=yes} \
%{?with_lto:--enable-lto --enable-plugins}%{!?with_lto:--disable-lto} \
--without-included-gettext \ --without-included-gettext \
--disable-win32-registry \ --disable-win32-registry \
--disable-werror \ --disable-werror \

View File

@ -34,7 +34,7 @@ URL: http://gcc.gnu.org/
# Default LTO to off. # Default LTO to off.
# #
%ifn %{defined with_lto} %ifn %{defined with_lto}
%define with_lto 0 %define enable_lto 1
%endif %endif
# #
@ -165,11 +165,8 @@ URL: http://gcc.gnu.org/
%if %{enable_fortran} %if %{enable_fortran}
languages="$languages,fortran" languages="$languages,fortran"
%endif %endif
%if %{enable_java} %if %{enable_lto}
languages="$languages,java" languages="$languages,lto"
%endif
%if %{enable_objc}
languages="$languages,objc"
%endif %endif
%{host_build_flags} %{host_build_flags}
@ -193,7 +190,6 @@ URL: http://gcc.gnu.org/
--disable-win32-registry \ --disable-win32-registry \
--disable-werror \ --disable-werror \
--enable-version-specific-runtime-libs \ --enable-version-specific-runtime-libs \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
--enable-newlib-io-c99-formats \ --enable-newlib-io-c99-formats \
%{?disable_MAKEINFO:MAKEINFO=missing} \ %{?disable_MAKEINFO:MAKEINFO=missing} \
%{?with_iconv:--enable-newlib-iconv} \ %{?with_iconv:--enable-newlib-iconv} \