From 01dc6df938832fe923ac394812553c0fc8a0f113 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 11 Apr 2013 09:37:50 +0530 Subject: Don't use run-via-rtld-prefix for anything other than tests run-via-rtld-prefix checks whether the program to be run is a static test and skips if it is. This is fine, except that it assumes that the program to be run is the second $^, which is true only for tests. This change creates an rtld-prefix, which is simply the dynamic linker prefix with the necessary arguments and uses that in the non-test targets. --- Rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rules') diff --git a/Rules b/Rules index e8e1117..a75d25b 100644 --- a/Rules +++ b/Rules @@ -194,7 +194,7 @@ binaries-bench := $(addprefix $(objpfx)bench-,$(bench)) run-bench = $(test-wrapper-env) \ GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ - $($*-ENV) $(run-via-rtld-prefix) $${run} + $($*-ENV) $(rtld-prefix) $${run} bench: $(binaries-bench) for run in $^; do \ -- cgit v1.1