]> 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)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 30 Oct 2019 16:44:09 +0000 (17:44 +0100)
Loading NSS modules from static binaries uses installed system
libraries if LD_LIBRARY_PATH is not set.

inet/Makefile

index 1fda64abe7d0e04aa0b6cefeac73c4fca913c39a..33912340a27604add3f38e3fa7862c048b7ceb65 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)