Disable system-readline on EL5 with gdb >= 7.3.91.

This commit is contained in:
Ralf Corsepius
2011-12-14 06:24:04 +00:00
parent 427033509f
commit 56cdf03bd0

View File

@@ -15,8 +15,15 @@ BuildRequires: %{_host_rpmprefix}gcc
%global build_sim --enable-sim %global build_sim --enable-sim
# Whether to build against system readline # 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 %bcond_without system_readline
%endif
# Whether to build python support # Whether to build python support
%if "%{_build}" != "%{_host}" %if "%{_build}" != "%{_host}"