From 6834063edba1b22fa10866c205c0a5ea3bac9f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= Date: Wed, 1 May 2024 19:22:28 +0000 Subject: [PATCH] run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS --- src/tools/run-make-support/src/cc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/run-make-support/src/cc.rs b/src/tools/run-make-support/src/cc.rs index a2d51902652bc..a4b9c35bc6f67 100644 --- a/src/tools/run-make-support/src/cc.rs +++ b/src/tools/run-make-support/src/cc.rs @@ -162,7 +162,8 @@ pub fn extra_cxx_flags() -> Vec<&'static str> { if is_msvc() { vec![] } else { vec!["-lstdc++"] } } else { match uname() { - n if n.contains("Darwin") => vec!["-lc++"], + "Darwin" => vec!["-lc++"], + "FreeBSD" | "SunOS" | "OpenBSD" => vec![], _ => vec!["-lstdc++"], } }