From 1eec1bfb2d551241c3d4e67ecacf2f0c89e76632 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Tue, 31 May 2022 10:42:51 -0700 Subject: [PATCH] dev-lang/rust: pass static-libstdcpp = false for libcxx build Bug: https://bugs.gentoo.org/732632 Thanks-to: Jonas Rakebrandt Tested-by: Manuel Nickschas Signed-off-by: Georgy Yakovlev --- dev-lang/rust/rust-1.61.0-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-lang/rust/rust-1.61.0-r1.ebuild b/dev-lang/rust/rust-1.61.0-r1.ebuild index 250c7e2f1db2c..40bfa3387e3e0 100644 --- a/dev-lang/rust/rust-1.61.0-r1.ebuild +++ b/dev-lang/rust/rust-1.61.0-r1.ebuild @@ -327,7 +327,10 @@ src_configure() { targets = "${LLVM_TARGETS// /;}" experimental-targets = "" link-shared = $(toml_usex system-llvm) - use-libcxx = ${use_libcxx} + $(if [[ ${use_libcxx} == true ]]; then + echo "use-libcxx = true" + echo "static-libstdcpp = false" + fi) $(case "${rust_target}" in i586-*-linux-*) # https://github.com/rust-lang/rust/issues/93059