diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-22 14:42:29 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-22 14:42:29 +0000 |
commit | b2c4395d9205cea934ecba6cf76a1307cd1130f8 (patch) | |
tree | 47bfad0f33df5a168884ed9b7d090ab19d29709f /contrib/crossrpms | |
parent | Add i686-pc-mingw32-termcap-helper.spec.in. (diff) | |
download | rtems-b2c4395d9205cea934ecba6cf76a1307cd1130f8.tar.bz2 |
Add hacks to work around Cdn-X and MinGW build issues.
Diffstat (limited to 'contrib/crossrpms')
-rw-r--r-- | contrib/crossrpms/gdb/build.add | 2 | ||||
-rw-r--r-- | contrib/crossrpms/gdb/gdb.add | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add index eef6a329d2..a52949eafb 100644 --- a/contrib/crossrpms/gdb/build.add +++ b/contrib/crossrpms/gdb/build.add @@ -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 diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add index 140603b16e..a0108273ec 100644 --- a/contrib/crossrpms/gdb/gdb.add +++ b/contrib/crossrpms/gdb/gdb.add @@ -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}" |