mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
parent
e73a258a3a
commit
1a24c6cfdb
@ -26,14 +26,11 @@ URL: http://sources.redhat.com/binutils
|
||||
%define allow_cxc
|
||||
|
||||
#
|
||||
# Default gold and LTO to disable.
|
||||
# Default gold to disable.
|
||||
#
|
||||
%ifn %{defined with_gold}
|
||||
%define with_gold 0
|
||||
%endif
|
||||
%ifn %{defined with_lto}
|
||||
%define with_lto 0
|
||||
%endif
|
||||
|
||||
#
|
||||
# Source
|
||||
@ -72,7 +69,6 @@ URL: http://sources.redhat.com/binutils
|
||||
%{?with_deterministic_archives:--enable-deterministic-archives} \
|
||||
%{?with_64_bit_bfd:--enable-64-bit-bfd} \
|
||||
%{?with_gold:--enable-gold=yes} \
|
||||
%{?with_lto:--enable-lto --enable-plugins}%{!?with_lto:--disable-lto} \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
|
@ -34,7 +34,7 @@ URL: http://gcc.gnu.org/
|
||||
# Default LTO to off.
|
||||
#
|
||||
%ifn %{defined with_lto}
|
||||
%define with_lto 0
|
||||
%define enable_lto 1
|
||||
%endif
|
||||
|
||||
#
|
||||
@ -165,11 +165,8 @@ URL: http://gcc.gnu.org/
|
||||
%if %{enable_fortran}
|
||||
languages="$languages,fortran"
|
||||
%endif
|
||||
%if %{enable_java}
|
||||
languages="$languages,java"
|
||||
%endif
|
||||
%if %{enable_objc}
|
||||
languages="$languages,objc"
|
||||
%if %{enable_lto}
|
||||
languages="$languages,lto"
|
||||
%endif
|
||||
|
||||
%{host_build_flags}
|
||||
@ -193,7 +190,6 @@ URL: http://gcc.gnu.org/
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--enable-version-specific-runtime-libs \
|
||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
||||
--enable-newlib-io-c99-formats \
|
||||
%{?disable_MAKEINFO:MAKEINFO=missing} \
|
||||
%{?with_iconv:--enable-newlib-iconv} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user