about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-10-30 17:44:09 +0100
committerH.J. Lu <hjl.tools@gmail.com>2024-05-09 15:33:29 -0700
commit13f1198286d641cf264710b435bd36728379a6d0 (patch)
tree85a7070b80180102c45c7b9530b09a504afc8886
parentf3095d3eb6d80b1f07f3410284e3880c7b3d9562 (diff)
downloadglibc-13f1198286d641cf264710b435bd36728379a6d0.tar.gz
glibc-13f1198286d641cf264710b435bd36728379a6d0.tar.xz
glibc-13f1198286d641cf264710b435bd36728379a6d0.zip
resolv/tst-idna_name_classify: Isolate from system libraries
Loading NSS modules from static binaries uses installed system
libraries if LD_LIBRARY_PATH is not set.

(cherry picked from commit 8dddf0bd5a3d57fba8da27e93f3d1a7032fce184)
-rw-r--r--inet/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/inet/Makefile b/inet/Makefile
index 7782913b4c..62d25f8535 100644
--- a/inet/Makefile
+++ b/inet/Makefile
@@ -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)