diff options
Diffstat (limited to 'source-builder/config/gdb-7-1.cfg')
-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} \ |