From a2500ae900fd973388a0968180f9983a6d4af2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Wed, 4 Nov 2026 20:55:02 +0100 Subject: [PATCH] Link X11 --- build.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..348a1ec --- /dev/null +++ b/build.rs @@ -0,0 +1,7 @@ +fn main() { + match std::env::var("CARGO_CFG_TARGET_OS").as_deref() { + Ok("freebsd") => println!("cargo::rustc-link-search=native=/usr/local/lib"), + Ok("openbsd") => println!("cargo::rustc-link-search=native=/usr/X11R6/lib"), + _ => {} + } +}