forked from Imagelibrary/rtems
Pass --enable/disable-lto to configure.
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
--enable-version-specific-runtime-libs \
|
--enable-version-specific-runtime-libs \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
--with-sysroot=%{_exec_prefix}/@tool_target@/sys-root \
|
--with-sysroot=%{_exec_prefix}/@tool_target@/sys-root \
|
||||||
|
%{?%with_lto:--enable-lto}%{?!with_lto:--disable-lto} \
|
||||||
%if %build_newlib
|
%if %build_newlib
|
||||||
--enable-newlib-io-c99-formats \
|
--enable-newlib-io-c99-formats \
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -46,6 +46,29 @@ BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{gcc_version}" >= "4.5.0"
|
||||||
|
%define _mpc_minvers 0.8
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{defined _mpc_minvers}
|
||||||
|
%{?fc12:%global mpc_provided 0.8}
|
||||||
|
%{?fc13:%global mpc_provided 0.8.1}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{defined mpc_provided}
|
||||||
|
%if "%{mpc_provided}" < "%{_mpc_minvers}"
|
||||||
|
%define _build_mpc 1
|
||||||
|
%else
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{_mpc_minvers}
|
||||||
|
%else
|
||||||
|
BuildRequires: libmpc-devel >= %{_mpc_minvers}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
%define _build_mpc 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
%if "%{gcc_version}" >= "4.3.3"
|
||||||
%define _cloog_minvers 0.15
|
%define _cloog_minvers 0.15
|
||||||
%endif
|
%endif
|
||||||
@@ -128,9 +151,13 @@ Requires: @rpmprefix@@tool_target@-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|||||||
Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{gcc_version}" >= "4.5.0"
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
%else
|
||||||
%if %build_gcj
|
%if %build_gcj
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if %build_gnat
|
%if %build_gnat
|
||||||
# Building gnat requires gnat
|
# Building gnat requires gnat
|
||||||
BuildRequires: gcc-gnat
|
BuildRequires: gcc-gnat
|
||||||
@@ -153,6 +180,10 @@ Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.g
|
|||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{_build_libelf}
|
||||||
|
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cross gcc for @tool_target@.
|
Cross gcc for @tool_target@.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user