summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-14 06:24:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-14 06:24:04 +0000
commit56cdf03bd0ad0d4a5512f5be4ea6e3480efe0623 (patch)
treeba6d0cfe615151ce3331c5998b3cfa874f1a43f8 /contrib/crossrpms
parentreadline-6.1.2-2. (diff)
downloadrtems-56cdf03bd0ad0d4a5512f5be4ea6e3480efe0623.tar.bz2
Disable system-readline on EL5 with gdb >= 7.3.91.
Diffstat (limited to 'contrib/crossrpms')
-rw-r--r--contrib/crossrpms/gdb/gdb.add9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add
index 4b4bef829d..5c30ef790f 100644
--- a/contrib/crossrpms/gdb/gdb.add
+++ b/contrib/crossrpms/gdb/gdb.add
@@ -15,8 +15,15 @@ BuildRequires: %{_host_rpmprefix}gcc
%global build_sim --enable-sim
# Whether to build against system readline
-# Default: yes
+# Default: yes, except on EL5
+%if "{gdb_version}" >= "7.3.91"
+# gdb >= 7.3.91 requires readline6
+# EL5's readline is too old
+%{?el5:%bcond_with system_readline}
+%{!?el5:%bcond_without system_readline}
+%else
%bcond_without system_readline
+%endif
# Whether to build python support
%if "%{_build}" != "%{_host}"