diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-03-05 12:58:49 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-03-05 12:58:49 -0800 |
commit | 9162c01d09c327ae2e7c3a5148307e8018792c51 (patch) | |
tree | 11b64fb3aedad59ec52f5f775f70d1291c34b872 /Rules | |
parent | 209826bcf2e5d1634adf5672e265eec5e5c07e83 (diff) | |
download | glibc-9162c01d09c327ae2e7c3a5148307e8018792c51.tar.gz glibc-9162c01d09c327ae2e7c3a5148307e8018792c51.tar.xz glibc-9162c01d09c327ae2e7c3a5148307e8018792c51.zip |
Avoid re-exec-self in bug-setlocale1.
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Rules b/Rules index cb4e1fb767..829beac487 100644 --- a/Rules +++ b/Rules @@ -186,9 +186,11 @@ 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 = $(test-wrapper-env) \ - $(run-program-env) \ - $($*-ENV) $(host-test-program-cmd) $($*-ARGS) +define make-test-out +$(if $($*-ENV-only),$(test-wrapper-env-only) $($*-ENV-only),\ + $(test-wrapper-env) $(run-program-env) $($*-ENV)) \ +$(host-test-program-cmd) $($*-ARGS) +endef $(objpfx)%.out: %.input $(objpfx)% $(make-test-out) > $@ < $(word 1,$^); \ $(evaluate-test) |