diff options
Diffstat (limited to 'contrib/crossrpms/gdb/build.add')
-rw-r--r-- | contrib/crossrpms/gdb/build.add | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add index 36862f127d..a60965ff99 100644 --- a/contrib/crossrpms/gdb/build.add +++ b/contrib/crossrpms/gdb/build.add @@ -16,15 +16,17 @@ --disable-win32-registry \ --disable-werror \ %{build_sim} \ -%if "%{gdb_version}" >= "6.7" - --with-system-readline \ -%endif + %{?with_system_readline:--with-system-readline} \ %if "%{gdb_version}" >= "6.6" --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} \ |