From: Viresh Kumar Date: Tue, 24 Jan 2023 08:23:43 +0000 (+0530) Subject: bindings: rust: Allow reusing locally installed gpio library X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=27b28ba156de7af257e2828e5d8ddee8099e55cb;p=qemu-gpiodev%2Flibgpiod.git bindings: rust: Allow reusing locally installed gpio library The rust crates builds fine when built with the 'make' command, as static linking works fine. But when referenced from a remote rust crate, it gives following error: error: could not find native static library `gpiod`, perhaps an -L flag is missing? This happens since we only support 'static' LIB-KIND currently. Remove the same to allow others to work too. Signed-off-by: Viresh Kumar Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/rust/libgpiod-sys/build.rs b/bindings/rust/libgpiod-sys/build.rs index 274069e..e3ed04a 100644 --- a/bindings/rust/libgpiod-sys/build.rs +++ b/bindings/rust/libgpiod-sys/build.rs @@ -37,5 +37,5 @@ fn main() { generate_bindings(); println!("cargo:rustc-link-search=./../../lib/.libs/"); - println!("cargo:rustc-link-lib=static=gpiod"); + println!("cargo:rustc-link-lib=gpiod"); }