Add hacks to work around Cdn-X and MinGW build issues.

This commit is contained in:
Ralf Corsepius
2009-01-22 14:42:29 +00:00
parent e574678e12
commit b2c4395d92
2 changed files with 16 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
--without-included-gettext \
--disable-win32-registry \
--disable-werror \
--enable-sim \
%{build_sim} \
%if "%{gdb_version}" >= "6.7"
--with-system-readline \
%endif

View File

@@ -12,6 +12,21 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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"
# suse
%if "%{?suse}"