From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1085D138359 for ; Mon, 31 Aug 2020 22:09:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB799E0949; Mon, 31 Aug 2020 22:09:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5D23E0949 for ; Mon, 31 Aug 2020 22:09:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF224340BC1 for ; Mon, 31 Aug 2020 22:09:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A85332D for ; Mon, 31 Aug 2020 22:09:01 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1598911736.c7bb7c1750e54218dcf79b622eb6fed17ffa1fa1.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/nss/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/nss/nss-3.56.ebuild X-VCS-Directories: dev-libs/nss/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c7bb7c1750e54218dcf79b622eb6fed17ffa1fa1 X-VCS-Branch: master Date: Mon, 31 Aug 2020 22:09:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b251f678-0c95-4e6a-a2ad-db3e993e6018 X-Archives-Hash: a092a6823f83fe9ddfc422eca979fa65 commit: c7bb7c1750e54218dcf79b622eb6fed17ffa1fa1 Author: Ross Charles Campbell gmail com> AuthorDate: Sun Aug 30 17:33:08 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Aug 31 22:08:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7bb7c17 dev-libs/nss: detect compiler type and set CC_IS_{GCC,CLANG} The two flags enables the build system to detect certain compiler features and optimizations. Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Ross Charles Campbell gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17269 Signed-off-by: Thomas Deutschmann gentoo.org> dev-libs/nss/nss-3.56.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-libs/nss/nss-3.56.ebuild b/dev-libs/nss/nss-3.56.ebuild index 1404b61e14c..c5e3dea3064 100644 --- a/dev-libs/nss/nss-3.56.ebuild +++ b/dev-libs/nss/nss-3.56.ebuild @@ -163,6 +163,12 @@ multilib_src_compile() { export ASFLAGS="" # Fix build failure on arm64 export NS_USE_GCC=1 + # Detect compiler type and set proper environment value + if tc-is-gcc; then + export CC_IS_GCC=1 + elif tc-is-clang; then + export CC_IS_CLANG=1 + fi local d