Skip to content

Commit 6834063

Browse files
committed
run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS
1 parent 9ba3d31 commit 6834063

File tree

1 file changed

+2
-1
lines changed
  • src/tools/run-make-support/src

1 file changed

+2
-1
lines changed

Diff for: src/tools/run-make-support/src/cc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ pub fn extra_cxx_flags() -> Vec<&'static str> {
162162
if is_msvc() { vec![] } else { vec!["-lstdc++"] }
163163
} else {
164164
match uname() {
165-
n if n.contains("Darwin") => vec!["-lc++"],
165+
"Darwin" => vec!["-lc++"],
166+
"FreeBSD" | "SunOS" | "OpenBSD" => vec![],
166167
_ => vec!["-lstdc++"],
167168
}
168169
}

0 commit comments

Comments
 (0)