Changeset a917c19 in rtems


Ignore:
Timestamp:
Aug 31, 2011, 9:21:53 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
4f6cfca8
Parents:
09e920b
Message:

Rework python.

Location:
contrib/crossrpms/gdb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/gdb/build.add

    r09e920b ra917c19  
    1919    %{?with_system_readline:--with-system-readline} \
    2020    --with-expat \
    21 %if "%{gdb_version}" >= "6.8.50"
    22 %if %{with python}
    23     --with-python \
    24 %else
    25     --without-python \
    26 %endif
    27 %endif
     21    %{?with_python:--with-python}%{!?with_python:--without-python} \
    2822    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
    2923    --prefix=%{_prefix} --bindir=%{_bindir} \
  • contrib/crossrpms/gdb/gdb.add

    r09e920b ra917c19  
    1818# Default: yes
    1919%bcond_without system_readline
     20
     21# Whether to build python support
     22%if "%{_build}" != "%{_host}"
     23# Can't build python Cdn-X
     24%bcond_with python
     25%else
     26%if "%{gdb_version}" >= "7.3"
     27# Python support is broken
     28%bcond_with python
     29%elseif "%{gdb_version}" >= "6.8.50"
     30%bcond_without python
     31%else
     32# python is unsupported
     33%bcond_with python
     34%endif
     35%endif
     36%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    2037
    2138%if "@tool_target@" == "powerpc-rtems@rtems_api@"
     
    6986BuildRequires:  %{_host_rpmprefix}ncurses-devel
    7087
    71 %if "%{gdb_version}" >= "6.8.50"
    72 %if "%{_build}" != "%{_host}"
    73 # Can't build python Cdn-X
    74 %bcond_with python
    75 %else
    76 %bcond_without python
    77 %endif
    78 %endif
    79 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    8088
    8189%if %build_infos
Note: See TracChangeset for help on using the changeset viewer.