From def674652eeac60c386d04733318b311f8a5b620 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 27 Apr 2020 15:00:14 +0200 Subject: nptl/tst-setuid1-static: Improve isolation from system objects Static dlopen needs an LD_LIBRARY_PATH setting to avoid loading system libraries. --- nptl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nptl/Makefile b/nptl/Makefile index 33fa038..ef9a6eb 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -714,6 +714,11 @@ tst-audit-threads-ENV = LD_AUDIT=$(objpfx)tst-audit-threads-mod1.so CFLAGS-tst-unwind-thread.c += -funwind-tables +# The test uses dlopen indirectly and would otherwise load system +# objects. +tst-setuid1-static-ENV = \ + LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf + # The tests here better do not run in parallel. ifeq ($(run-built-tests),yes) ifneq ($(filter %tests,$(MAKECMDGOALS)),) -- cgit v1.1