From 2b954a13da8edec0b0004055de71ab381aff29b6 Mon Sep 17 00:00:00 2001 From: Benoit Canet Date: Sun, 8 Feb 2026 17:21:49 +0100 Subject: [PATCH] Enable 'lazy_static' on OpenBSD builds. Doing 'make test-local-build' in revision b3d8a0002702bc456465e2ccfd01412ae264ca37 of https://github.com/rust-skia/rust-skia.git was failing under 'OpenBSD 7.8' with the following message. --- --> src/lib.rs:6:1 | 6 | extern crate lazy_static; | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate --- Enable 'lazy_static' in Cargo.toml for the OpenBSD platform. 'cargo build' now run OK. 'cargo test' mostly pass excepted the following test. --- test target/debug/build/offscreen_gl_context-b4279f645908a2ba/out/glx_extra_bindings.rs - glx_extra::Glx::load_with (line 431) ... ignored --- --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dfdf3687..5c5dc74c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ mozangle = { version = "0.2", features = ["egl"] } [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3", features = ["wingdi", "winuser", "libloaderapi"] } -[target.'cfg(any(target_os="macos", target_os="windows", target_os="android", target_os="ios"))'.dependencies] +[target.'cfg(any(target_os="macos", target_os="openbsd" ,target_os="windows", target_os="android", target_os="ios"))'.dependencies] lazy_static = "1" [target.'cfg(any(target_os = "android", target_os = "windows"))'.dependencies]