e354a5
commit 8dddf0bd5a3d57fba8da27e93f3d1a7032fce184
e354a5
Author: Florian Weimer <fweimer@redhat.com>
e354a5
Date:   Wed Oct 30 17:44:09 2019 +0100
e354a5
e354a5
    resolv/tst-idna_name_classify: Isolate from system libraries
e354a5
    
e354a5
    Loading NSS modules from static binaries uses installed system
e354a5
    libraries if LD_LIBRARY_PATH is not set.
e354a5
e354a5
diff --git a/inet/Makefile b/inet/Makefile
e354a5
index 7782913b4c06f057..62d25f853538bb08 100644
e354a5
--- a/inet/Makefile
e354a5
+++ b/inet/Makefile
e354a5
@@ -112,4 +112,8 @@ ifeq ($(build-static-nss),yes)
e354a5
 CFLAGS += -DSTATIC_NSS
e354a5
 endif
e354a5
 
e354a5
+# The test uses dlopen indirectly and would otherwise load system
e354a5
+# objects.
e354a5
+tst-idna_name_classify-ENV = \
e354a5
+  LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)elf
e354a5
 $(objpfx)tst-idna_name_classify.out: $(gen-locales)