diff --git a/contrib/crossrpms/gcc/gccnewlib.add b/contrib/crossrpms/gcc/gccnewlib.add index c29f28ce3d..6920cecc16 100644 --- a/contrib/crossrpms/gcc/gccnewlib.add +++ b/contrib/crossrpms/gcc/gccnewlib.add @@ -20,6 +20,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define _use_internal_dependency_generator 0 +%if "%{_build}" != "%{_host}" +BuildRequires: @rpmprefix@%{_host}-gcc +BuildRequires: @rpmprefix@@tool_target@-gcc +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif