From 03ac099f6bc9157cdec50db10944e1d99ff07aa1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 24 Oct 2012 00:08:46 +0000 Subject: Define and use $(run-built-tests). --- Makeconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index 4481cb38c5..1b1604af56 100644 --- a/Makeconfig +++ b/Makeconfig @@ -564,6 +564,15 @@ endif csu-objpfx = $(common-objpfx)csu/ elf-objpfx = $(common-objpfx)elf/ +# Whether to run test programs built for the library's host system. +ifndef run-built-tests +ifeq (yes,$(cross-compiling)) +run-built-tests = no +else +run-built-tests = yes +endif +endif + # How to run a program we just linked with our library. # The program binary is assumed to be $(word 2,$^). built-program-file = $(dir $(word 2,$^))$(notdir $(word 2,$^)) -- cgit v1.2.3-70-g09d2