summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtems/config/tools/rtems-tools-git-1.cfg11
1 files changed, 10 insertions, 1 deletions
diff --git a/rtems/config/tools/rtems-tools-git-1.cfg b/rtems/config/tools/rtems-tools-git-1.cfg
index dc9bdae..0adeb6a 100644
--- a/rtems/config/tools/rtems-tools-git-1.cfg
+++ b/rtems/config/tools/rtems-tools-git-1.cfg
@@ -29,8 +29,17 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%build
build_top=$(pwd)
+ #
+ # Provide the host for a Cxc build.
+ #
+ if test "%{_build}" != "%{_host}" ; then
+ RT_HOST="-host=%{_host}"
+ else
+ RT_HOST=
+ fi
+
cd ${source_dir_rtems_tools}
- ./waf configure --prefix=%{_prefix}
+ ./waf configure ${RT_HOST} --prefix=%{_prefix}
./waf
cd ${build_top}