[rtems-crossrpms commit] Fix typo in readline handling.
Ralf Corsepius
ralf at rtems.org
Mon Oct 1 14:19:36 UTC 2012
Module: rtems-crossrpms
Branch: master
Commit: 16ac16571eb731a30d701727bc09f225025f6f8a
Changeset: http://git.rtems.org/rtems-crossrpms/commit/?id=16ac16571eb731a30d701727bc09f225025f6f8a
Author: Ralf Corsépius <ralf.corsepius at rtems.org>
Date: Mon Oct 1 12:02:15 2012 +0200
Fix typo in readline handling.
Use %{defined suse} instead of %{suse} >= 10.3.
Disable sim for microblaze-gdb-7.5 on mingw.
---
gdb/gdb.add | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/gdb/gdb.add b/gdb/gdb.add
index e02cb63..f47e055 100644
--- a/gdb/gdb.add
+++ b/gdb/gdb.add
@@ -16,7 +16,7 @@ BuildRequires: %{_host_rpmprefix}gcc
# Whether to build against system readline
# Default: yes, except on EL5
-%if "{gdb_version}" >= "7.3.91"
+%if "%{gdb_version}" >= "7.3.91"
# gdb >= 7.3.91 requires readline6
# EL5's readline is too old
%{?el5:%bcond_with system_readline}
@@ -72,9 +72,17 @@ BuildRequires: %{_host_rpmprefix}gcc
%define build_sim --disable-sim
%endif
%endif
+%if "@tool_target@" == "microblaze-rtems at rtems_api@"
+%ifos mingw mingw32
+%if "%{gdb_version}" == "7.5"
+# Mingw lacks sys/times.h, required by the microblaze simulator
+%define build_sim --disable-sim
+%endif
+%endif
+%endif
# suse
-%if "%{?suse}" >= "10.3"
+%if %{defined suse}
BuildRequires: libexpat-devel
%else
# Fedora/CentOS/Cygwin/MinGW
More information about the vc
mailing list