forked from Imagelibrary/rtems
Add hacks to work around Cdn-X and MinGW build issues.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
--without-included-gettext \
|
--without-included-gettext \
|
||||||
--disable-win32-registry \
|
--disable-win32-registry \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
--enable-sim \
|
%{build_sim} \
|
||||||
%if "%{gdb_version}" >= "6.7"
|
%if "%{gdb_version}" >= "6.7"
|
||||||
--with-system-readline \
|
--with-system-readline \
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -12,6 +12,21 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
BuildRequires: %{_host_rpmprefix}gcc
|
||||||
|
|
||||||
|
%define build_sim --enable-sim
|
||||||
|
# psim doesn't support Cdn-X
|
||||||
|
%if ("@tool_target@" == "powerpc-rtems@rtems_api@") && ("%{_build}" != "%{_host}")
|
||||||
|
%define build_sim --disable-sim
|
||||||
|
%endif
|
||||||
|
%ifos mingw mingw32
|
||||||
|
# Mingw lacks functions required by the simulator
|
||||||
|
%if "@tool_target@" == "sparc-rtems@rtems_api@"
|
||||||
|
%define build_sim --disable-sim
|
||||||
|
%endif
|
||||||
|
%if "@tool_target@" == "h8300-rtems@rtems_api@"
|
||||||
|
%define build_sim --disable-sim
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{gdb_version}" >= "6.6"
|
%if "%{gdb_version}" >= "6.6"
|
||||||
# suse
|
# suse
|
||||||
%if "%{?suse}"
|
%if "%{?suse}"
|
||||||
|
|||||||
Reference in New Issue
Block a user