From 14dd4e97a80c55a9140017ab13d0d8000977b274 Mon Sep 17 00:00:00 2001 From: Alex Zepeda Date: Tue, 1 Aug 2023 15:54:30 -0700 Subject: [PATCH] rustc_llvm: Link to `zlib` on dragonfly --- compiler/rustc_llvm/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index aa1121d6bb3..c3ab4312c02 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -251,7 +251,8 @@ fn main() { } else if target.contains("windows-gnu") { println!("cargo:rustc-link-lib=shell32"); println!("cargo:rustc-link-lib=uuid"); - } else if target.contains("haiku") || target.contains("darwin") { + } else if target.contains("haiku") || target.contains("darwin") || target.contains("dragonfly") + { println!("cargo:rustc-link-lib=z"); } else if target.contains("netbsd") { println!("cargo:rustc-link-lib=z");