From dd0fc0a03a680d76d3454f955648876b2a1ccae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Sat, 17 Dec 2016 11:22:41 +0100 Subject: [PATCH] Disconnect ar from cc on OpenBSD OpenBSD usually use an alternative compiler (`egcc') from ports. But the `ar' is unprefixed as it comes from base. --- src/build_helper/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/build_helper/lib.rs b/src/build_helper/lib.rs index 07f9c91d3c78..bd036fae6895 100644 --- a/src/build_helper/lib.rs +++ b/src/build_helper/lib.rs @@ -47,6 +47,8 @@ pub fn cc2ar(cc: &Path, target: &str) -> Option { None } else if target.contains("musl") { Some(PathBuf::from("ar")) + } else if target.contains("openbsd") { + Some(PathBuf::from("ar")) } else { let parent = cc.parent().unwrap(); let file = cc.file_name().unwrap().to_str().unwrap();