From 56cdf03bd0ad0d4a5512f5be4ea6e3480efe0623 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 14 Dec 2011 06:24:04 +0000 Subject: Disable system-readline on EL5 with gdb >= 7.3.91. --- contrib/crossrpms/gdb/gdb.add | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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}" -- cgit v1.2.3