commit:     1eec1bfb2d551241c3d4e67ecacf2f0c89e76632
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 17:42:51 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue May 31 17:43:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eec1bfb

dev-lang/rust: pass static-libstdcpp = false for libcxx build

Bug: https://bugs.gentoo.org/732632
Thanks-to: Jonas Rakebrandt <xarblu <AT> protonmail.com>
Tested-by: Manuel Nickschas <sputnick <AT> quassel-irc.org>
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 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 250c7e2f1db2..40bfa3387e3e 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

Reply via email to