summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-10-24 00:08:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-10-24 00:08:46 +0000
commit03ac099f6bc9157cdec50db10944e1d99ff07aa1 (patch)
tree9d818c011b71b40675d7de9779f1a4751fc5541c /Makeconfig
parentebfd1bbd04fcc82c34d6f46d942ab763a60ede03 (diff)
downloadglibc-03ac099f6bc9157cdec50db10944e1d99ff07aa1.tar.gz
glibc-03ac099f6bc9157cdec50db10944e1d99ff07aa1.tar.xz
glibc-03ac099f6bc9157cdec50db10944e1d99ff07aa1.zip
Define and use $(run-built-tests).
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig9
1 files changed, 9 insertions, 0 deletions
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,$^))