summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-09-05 04:37:55 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-09-05 04:37:55 +0000
commit05e8b649d829c76e952333cefbabd4c214a0f849 (patch)
treeaad03efb64c3b059651660a791ce1730a5f47a4e /contrib
parent2009-09-04 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-05e8b649d829c76e952333cefbabd4c214a0f849.tar.bz2
Add python support.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/gdb/build.add4
-rw-r--r--contrib/crossrpms/gdb/gdb.add10
2 files changed, 14 insertions, 0 deletions
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add
index 36862f127d..fd87cc5a0c 100644
--- a/contrib/crossrpms/gdb/build.add
+++ b/contrib/crossrpms/gdb/build.add
@@ -23,8 +23,12 @@
--with-expat \
%endif
%if "%{gdb_version}" >= "6.8.50"
+%if %{with python}
+ --with-python \
+%else
--without-python \
%endif
+%endif
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
--prefix=%{_prefix} --bindir=%{_bindir} \
--includedir=%{_includedir} --libdir=%{_libdir} \
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add
index efd3a5e0b8..fddcf8c30b 100644
--- a/contrib/crossrpms/gdb/gdb.add
+++ b/contrib/crossrpms/gdb/gdb.add
@@ -59,6 +59,16 @@ BuildRequires: %{_host_rpmprefix}termcap-devel
BuildRequires: %{_host_rpmprefix}readline-devel
BuildRequires: %{_host_rpmprefix}ncurses-devel
+%if "%{gdb_version}" >= "6.8.50"
+%if "%{_build}" != "%{_host}"
+# Can't build python Cdn-X
+%bcond_without python
+%else
+%bcond_with python
+%endif
+%endif
+%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
+
%if %build_infos
# Required for building the infos
BuildRequires: /sbin/install-info