OpenBSD uses -lc++ as well

This commit is contained in:
Kirill A. Korinsky 2026-01-26 14:48:35 +01:00 committed by Kornel
parent 48e27ae5a3
commit 13b2db754d

View File

@ -572,7 +572,7 @@ fn get_cpp_runtime_lib(config: &Config) -> Option<String> {
}
match &*config.target_os {
"macos" | "ios" | "freebsd" | "android" => Some("c++".into()),
"macos" | "ios" | "freebsd" | "openbsd" | "android" => Some("c++".into()),
_ if config.unix || config.target_env == "gnu" => Some("stdc++".into()),
// TODO(rmehra): figure out how to do this for windows
_ => None,