Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/nss/
Date: Mon, 31 Aug 2020 22:09:05
Message-Id: 1598911736.c7bb7c1750e54218dcf79b622eb6fed17ffa1fa1.whissi@gentoo
1 commit: c7bb7c1750e54218dcf79b622eb6fed17ffa1fa1
2 Author: Ross Charles Campbell <rossbridger.cc <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 30 17:33:08 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 31 22:08:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7bb7c17
7
8 dev-libs/nss: detect compiler type and set CC_IS_{GCC,CLANG}
9
10 The two flags enables the build system to detect certain compiler features
11 and optimizations.
12
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Ross Charles Campbell <rossbridger.cc <AT> gmail.com>
15 Closes: https://github.com/gentoo/gentoo/pull/17269
16 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
17
18 dev-libs/nss/nss-3.56.ebuild | 6 ++++++
19 1 file changed, 6 insertions(+)
20
21 diff --git a/dev-libs/nss/nss-3.56.ebuild b/dev-libs/nss/nss-3.56.ebuild
22 index 1404b61e14c..c5e3dea3064 100644
23 --- a/dev-libs/nss/nss-3.56.ebuild
24 +++ b/dev-libs/nss/nss-3.56.ebuild
25 @@ -163,6 +163,12 @@ multilib_src_compile() {
26 export ASFLAGS=""
27 # Fix build failure on arm64
28 export NS_USE_GCC=1
29 + # Detect compiler type and set proper environment value
30 + if tc-is-gcc; then
31 + export CC_IS_GCC=1
32 + elif tc-is-clang; then
33 + export CC_IS_CLANG=1
34 + fi
35
36 local d