aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index b6df6db..a2c439e 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -495,11 +495,15 @@ sysdep-library-path = \
$(subst $(empty) ,:,$(strip $(patsubst -Wl$(comma)-rpath-link=%, %,\
$(filter -Wl$(comma)-rpath-link=%,\
$(sysdep-LDFLAGS)))))
+ifeq (,$(findstring $(notdir $(built-program-file)), $(tests-static)))
run-program-prefix = $(elf-objpfx)$(rtld-installed-name) \
--library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path))
else
run-program-prefix =
endif
+else
+run-program-prefix =
+endif
# Never use $(run-program-prefix) for the statically-linked %-bp test programs
built-program-cmd = $(patsubst %,$(run-program-prefix),\
$(filter-out %-bp,$(built-program-file))) \