From cc1290d07e9bb5662642846c50c97c853d1827b5 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 24 Oct 2012 21:59:01 +0000 Subject: Support cross-testing. --- Rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Rules') diff --git a/Rules b/Rules index db5bad0c85..35e6ce0bf1 100644 --- a/Rules +++ b/Rules @@ -180,8 +180,9 @@ ifneq "$(strip $(tests) $(xtests) $(test-srcs))" "" # These are the implicit rules for making test outputs # from the test programs and whatever input files are present. -make-test-out = GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ - $($*-ENV) $(built-program-cmd) $($*-ARGS) +make-test-out = $(test-wrapper-env) \ + GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ + $($*-ENV) $(host-built-program-cmd) $($*-ARGS) $(objpfx)%-bp.out: %.input $(objpfx)%-bp $(make-test-out) > $@ < $(word 1,$^) $(objpfx)%.out: %.input $(objpfx)% -- cgit v1.2.3