From patchwork Fri Oct 11 12:07:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 34917 Received: (qmail 49269 invoked by alias); 11 Oct 2019 12:07:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 49261 invoked by uid 89); 11 Oct 2019 12:07:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=Isolate X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] resolv/tst-idna_name_classify: Isolate from system libraries Date: Fri, 11 Oct 2019 14:07:41 +0200 Message-ID: <87sgnzjxiq.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Loading NSS modules from static binaries uses installed system libraries if LD_LIBRARY_PATH is not set. 2019-10-11 Florian Weimer * inet/Makefile (tst-idna_name_classify-ENV): Set LD_LIBRARY_PATH. diff --git a/inet/Makefile b/inet/Makefile index 1fda64abe7..33912340a2 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)