summaryrefslogtreecommitdiff
path: root/contrib/crossrpms/gdb/gdb.add
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/gdb/gdb.add')
-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}"