diff options
author | Chris Johns <chrisj@rtems.org> | 2016-03-08 22:23:01 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-03-08 22:26:28 +1100 |
commit | 7309d94031e830543eb23c3dd70c9ca4164c59af (patch) | |
tree | 4747a2cfe01d4ef03b88fe66083f867d09f81a7e /source-builder/config/gdb-7-1.cfg | |
parent | sb: Report platform import errors. (diff) | |
download | rtems-source-builder-7309d94031e830543eb23c3dd70c9ca4164c59af.tar.bz2 |
sb: Add support to GDB to select a specific Python.
Detect a suitable Python version on Windows.
Update #2619.
Diffstat (limited to '')
-rw-r--r-- | source-builder/config/gdb-7-1.cfg | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source-builder/config/gdb-7-1.cfg b/source-builder/config/gdb-7-1.cfg index 90a1f5a..0fef5b3 100644 --- a/source-builder/config/gdb-7-1.cfg +++ b/source-builder/config/gdb-7-1.cfg @@ -60,6 +60,16 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) %endif # +# The --with-python option is either the default which is auto or the path to +# the specific python to be used. +# +%if %{defined with_python_path} + %define with_python_option --with-python=%{with_python_path} +%else + %define with_python_option --with-python +%endif + +# # # Prepare the source code. # @@ -104,7 +114,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) %{?gdb-sim-options:%{gdb-sim-options}} \ --without-zlib \ --with-expat \ - %{!?without_python:--with-python} \ + %{!?without_python:%{with_python_option}} \ --prefix=%{_prefix} --bindir=%{_bindir} \ --exec-prefix=%{_exec_prefix} \ --includedir=%{_includedir} --libdir=%{_libdir} \ |