Skip to content

Commit 42ecde4

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

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

src/tools/run-make-support/src/cc.rs

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

0 commit comments

Comments
 (0)