Skip to content

Commit c3b7d7b

Browse files
committed
Auto merge of rust-lang#98081 - gco:no_static_libcpp, r=jyn514
Do not try to statically link libstdc++ on Solaris Fixes rust-lang#97260
2 parents 0cb9899 + 6f0d614 commit c3b7d7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/bootstrap/compile.rs

+1
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ pub fn rustc_cargo_env(builder: &Builder<'_>, cargo: &mut Cargo, target: TargetS
730730
&& !target.contains("freebsd")
731731
&& !target.contains("msvc")
732732
&& !target.contains("apple")
733+
&& !target.contains("solaris")
733734
{
734735
let file = compiler_file(
735736
builder,

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ fn configure_cmake(
655655
// For distribution we want the LLVM tools to be *statically* linked to libstdc++.
656656
// We also do this if the user explicitly requested static libstdc++.
657657
if builder.config.llvm_static_stdcpp {
658-
if !target.contains("msvc") && !target.contains("netbsd") {
658+
if !target.contains("msvc") && !target.contains("netbsd") && !target.contains("solaris") {
659659
if target.contains("apple") || target.contains("windows") {
660660
ldflags.push_all("-static-libstdc++");
661661
} else {

0 commit comments

Comments
 (0)