Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/
Date: Tue, 31 May 2022 17:45:27
Message-Id: 1654019030.1eec1bfb2d551241c3d4e67ecacf2f0c89e76632.gyakovlev@gentoo
1 commit: 1eec1bfb2d551241c3d4e67ecacf2f0c89e76632
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 17:42:51 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 17:43:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eec1bfb
7
8 dev-lang/rust: pass static-libstdcpp = false for libcxx build
9
10 Bug: https://bugs.gentoo.org/732632
11 Thanks-to: Jonas Rakebrandt <xarblu <AT> protonmail.com>
12 Tested-by: Manuel Nickschas <sputnick <AT> quassel-irc.org>
13 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
14
15 dev-lang/rust/rust-1.61.0-r1.ebuild | 5 ++++-
16 1 file changed, 4 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-lang/rust/rust-1.61.0-r1.ebuild b/dev-lang/rust/rust-1.61.0-r1.ebuild
19 index 250c7e2f1db2..40bfa3387e3e 100644
20 --- a/dev-lang/rust/rust-1.61.0-r1.ebuild
21 +++ b/dev-lang/rust/rust-1.61.0-r1.ebuild
22 @@ -327,7 +327,10 @@ src_configure() {
23 targets = "${LLVM_TARGETS// /;}"
24 experimental-targets = ""
25 link-shared = $(toml_usex system-llvm)
26 - use-libcxx = ${use_libcxx}
27 + $(if [[ ${use_libcxx} == true ]]; then
28 + echo "use-libcxx = true"
29 + echo "static-libstdcpp = false"
30 + fi)
31 $(case "${rust_target}" in
32 i586-*-linux-*)
33 # https://github.com/rust-lang/rust/issues/93059