diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add index 100ebe1656..f0157cbf86 100644 --- a/contrib/crossrpms/gdb/gdb.add +++ b/contrib/crossrpms/gdb/gdb.add @@ -10,6 +10,10 @@ License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: @rpmprefix@%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}"