From c8ecbf9c1e920278fbe05ade37ed229bffe0880d Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 18 Mar 2008 05:37:48 +0000 Subject: [PATCH] BR: @rpmprefix@@tool_target@-gcc and @rpmprefix@%{_host}-gcc for CdnX-builds. --- contrib/crossrpms/gcc/gccnewlib.add | 5 +++++ 1 file changed, 5 insertions(+) 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