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.
This commit is contained in:
Florian Weimer 2019-10-30 17:44:09 +01:00
parent 0b262ca4c6
commit 8dddf0bd5a

View 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)