summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/crossrpms/gdb/gdb.add4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add
index 5885e71b9e..609101c8f3 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}"