From patchwork Mon Oct 22 17:16:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 149396 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2887073lji; Mon, 22 Oct 2018 10:16:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/qAQqEvCrNAHhj01ebZA0Gdf3a5ZG0Mx1CyHzEZrVSWSEoPLczqKrszyoHm72w0EvISr6 X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr44848230pla.204.1540228584253; Mon, 22 Oct 2018 10:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540228584; cv=none; d=google.com; s=arc-20160816; b=woLLXSSh2sQJ4q20b90AAJDLrvUYNM4E6hOHs01T2lh7z77qeobimTbMCbFegaHNMX rS0h2etJdXnykxpiD/yuORKPz4SLUksiqo0ZzlS4OrAhN/9jGI8urp5zFBf93G/usahA O30/tfNfKin/9PUtGYFgYfVE7osnTCTaiH5Th2O3ywkneCGpS+p2yZjpPMrzkIbWH7+4 M8as0rgu++HbZaq3wder2TnaLnqRbVOk18Vzx38FqIfhFocg17QwNACcSt4MYs4Ielld SgMcooQymjROloxFknYZ44/9P39TPkOlsX43Ur3RygIr89WXh0PDwHrjpaEq2jfZwIMu DJkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-subscribe:list-unsubscribe :list-id:precedence:mailing-list:dkim-signature:domainkey-signature; bh=KVeNUZy9rOeRZp7oOuQouu2mFDAVbVn73+BxE29JdoA=; b=mgFpQ0nC73DET6GUUcvMLTY8+/nlJxzkgSDj6L6ffY5pCR1m0XpvaJwStd+NyelFy3 7vzrazc5lVWK/NL0t8AeOBg2yh10M9ggDYsTZyF1VbaxyTjm7seA3NTqEWrIuV/BSPxD 2keitSU4YtAl98g2vBqb+yVrnUYXDgSIDjjP5MmP1eSi+b7kCJL6ExbCBpdcdfmTvCrT Af//e0kXuHT6Ym1tL5mEKyq81OMFSf/e9kqbTIpulrEi8nA2Xz8ZKzsb08yJRvdBuKqD g8SVWNkKuuWlHZdczpn9rhg40NPNr5Zqb9YjPST3LbB0dGmL9sRKzXO5L/aBCsuY9OUz +lwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=MhsycH13; dkim=pass header.i=@linaro.org header.s=google header.b=IiCY1f53; spf=pass (google.com: domain of libc-alpha-return-96583-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-96583-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id c13-v6si1534617pga.490.2018.10.22.10.16.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 10:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-96583-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=MhsycH13; dkim=pass header.i=@linaro.org header.s=google header.b=IiCY1f53; spf=pass (google.com: domain of libc-alpha-return-96583-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-96583-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=a09+x2EGYRb99L1Qy3PQBNhSn7vzuDu+yOK0x14kAu6Npfa3J0aIQ /1785SjUmoMstETN63E939aRejmo5xt0OYIna4241SoYNmnXQJh4Slrp9bHUrGdu 8uCw7HQenelveCMUmtACqAXSqpEF9tgEdpl+m6BjXM6razcckwtnk8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=HDWDy55i2MS4IfgCWSWKxu88eH0=; b=MhsycH136CRdmUxDn7iOVHs9k03h NxsDtAIIFunhiizdiNLA6UoB6VT+T3hcjlzAsc+S/X5Ql9YVAfsV2gAdKfSPaggL p7JGIwCwWvsIz5/OI0t4l9rn1OD0FTepyIBJs8NBZ22NjxuxiIkxk13fIxAbVpfB PSh77woo1eG4unU= Received: (qmail 119569 invoked by alias); 22 Oct 2018 17:16:15 -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 119544 invoked by uid 89); 22 Oct 2018 17:16:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt1-f196.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=KVeNUZy9rOeRZp7oOuQouu2mFDAVbVn73+BxE29JdoA=; b=IiCY1f5383T8JuroLttMARk9jxSGvnvdUH7Ghno4bj+urMnLcEsSQsM+S4ecuqKLCF QvxunTU+O6zXGTczy6Hxb9ynWh3w4/AcxGgwsnuwjHni/6eNBLv/L00dRxjc4pMJt/g0 EZBVUOJxH//yNTVRoWKU4HTMX+fLOaPZvTM7o= Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] Fix test-installation.pl with missing libnss_test2 Date: Mon, 22 Oct 2018 14:16:06 -0300 Message-Id: <20181022171606.15699-1-adhemerval.zanella@linaro.org> This patch excludes libnss_test2 from libraries to link against (added on ae5c498d93d) and also adds the linker option no-as-neeeded to avoid the linker with this option as default to avoid linking with all the libraries used on compiler invocation. I checked installing glibc against a ubuntu16 chroot and issuing the test-installation.pl directly. [BZ #21911] * scripts/test-installation.pl: Exclude libnss_test2 and use no-as-needed linker option. --- ChangeLog | 5 +++++ scripts/test-installation.pl | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl index b2e4ba7646..a294029cbf 100755 --- a/scripts/test-installation.pl +++ b/scripts/test-installation.pl @@ -125,7 +125,9 @@ while () { next if ($build_mathvec == 0 && $name eq "mvec"); if ($name ne "nss_ldap" && $name ne "db1" && $name ne "thread_db" - && $name ne "nss_test1" && $name ne "libgcc_s") { + && $name ne "nss_test1" + && $name ne "nss_test2" + && $name ne "libgcc_s") { $link_libs .= " -l$name"; $versions{$name} = $version; } @@ -156,7 +158,7 @@ int main(void) { '; close PRG; -open GCC, "$CC $dir/test-prg$$.c $link_libs -o $dir/test-prg$$ 2>&1 |" +open GCC, "$CC $dir/test-prg$$.c -Wl,-no-as-needed $link_libs -o $dir/test-prg$$ 2>&1 |" or die ("Couldn't execute $CC!"); while () {