diff options
Diffstat (limited to 'source-builder/config/binutils-2-1.cfg')
-rw-r--r-- | source-builder/config/binutils-2-1.cfg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source-builder/config/binutils-2-1.cfg b/source-builder/config/binutils-2-1.cfg index 397dea5..539f076 100644 --- a/source-builder/config/binutils-2-1.cfg +++ b/source-builder/config/binutils-2-1.cfg @@ -27,6 +27,16 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) %define allow_cxc # +# Default gold and LTO to disable. +# +%ifn %{defined with_gold} + %define with_gold 0 +%endif +%ifn %{defined with_lto} + %define with_lto 0 +%endif + +# # Source # %source set binutils ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_version}.tar.bz2 @@ -60,6 +70,8 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) --target=%{_target} \ --verbose --disable-nls \ %{?with_deterministic_archives:--enable-deterministic-archives} \ + %{?with_gold:--enable-gold=yes} \ + %{?with_lto:--enable-lto --enable-plugins}%{!?with_lto:--disable-lto} \ --without-included-gettext \ --disable-win32-registry \ --disable-werror \ |