summaryrefslogtreecommitdiff
path: root/stdlib/Makefile
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-02-10 23:07:18 +0000
committerAndreas Jaeger <aj@suse.de>2001-02-10 23:07:18 +0000
commit2cca386760af59e3040ca3d41cff6c2bf890e041 (patch)
tree200cce4825f4424d83a1b03cbf67dedad123ce21 /stdlib/Makefile
parente1e3ba549adc0a43beebcd19a8f8515c4696ed06 (diff)
* stdlib/Makefile (tests): Don't run tst-fmtmsg when
cross-compiling. ($(objpfx)tst-fmtmsg.out): Pass run-program-prefix.
Diffstat (limited to 'stdlib/Makefile')
-rw-r--r--stdlib/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 61c35ebf78..6faa1c54f7 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -141,7 +141,11 @@ test-canon-ARGS = --test-dir=${common-objpfx}stdlib
tst-strtod-ENV = LOCPATH=$(common-objpfx)localedata
# Run a test on the header files we use.
-tests: $(objpfx)isomac.out $(objpfx)tst-fmtmsg.out
+tests: $(objpfx)isomac.out
+
+ifeq (no,$(cross-compiling))
+tests: $(objpfx)tst-fmtmsg.out
+endif
$(objpfx)isomac.out: $(objpfx)isomac
$(dir $<)$(notdir $<) '$(CC)' \
@@ -151,4 +155,4 @@ $(objpfx)isomac: isomac.c
$(native-compile)
$(objpfx)tst-fmtmsg.out: tst-fmtmsg.sh $(objpfx)tst-fmtmsg
- $(SHELL) -e $< $(common-objpfx) $(common-objpfx)stdlib/
+ $(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' $(common-objpfx)stdlib/