]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv/tst-idna_name_classify: Isolate from system libraries
authorFlorian Weimer <fweimer@redhat.com>
Wed, 30 Oct 2019 16:44:09 +0000 (17:44 +0100)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 May 2024 22:33:29 +0000 (15:33 -0700)
Loading NSS modules from static binaries uses installed system
libraries if LD_LIBRARY_PATH is not set.

(cherry picked from commit 8dddf0bd5a3d57fba8da27e93f3d1a7032fce184)

inet/Makefile

index 7782913b4c06f057bcfe8abf197dc2b6a397e612..62d25f853538bb08ac8349930dd5dcd454777bc6 100644 (file)
@@ -112,4 +112,8 @@ ifeq ($(build-static-nss),yes)
 CFLAGS += -DSTATIC_NSS
 endif
 
+# The test uses dlopen indirectly and would otherwise load system
+# objects.
+tst-idna_name_classify-ENV = \
+  LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
 $(objpfx)tst-idna_name_classify.out: $(gen-locales)