hidapi-sys: Disable static compilation
As discussed in the previous merge request [0], this patch disables
static compilation instead of removing the corresponding feature.
[0] https://salsa.debian.org/rust-team/debcargo-conf/merge_requests/17
Robin Krahl
5 years ago
2 | 2 |
* Team upload.
|
3 | 3 |
* Package hidapi-sys 0.1.4 from crates.io using debcargo 2.2.9
|
4 | 4 |
|
5 | |
-- Robin Krahl <robin.krahl@ireas.org> Thu, 20 Dec 2018 11:13:38 +0000
|
|
5 |
-- Robin Krahl <robin.krahl@ireas.org> Mon, 31 Dec 2018 16:46:58 +0000
|
|
0 |
Index: hidapi-sys/src/lib.rs
|
|
1 |
===================================================================
|
|
2 |
--- hidapi-sys.orig/src/lib.rs
|
|
3 |
+++ hidapi-sys/src/lib.rs
|
|
4 |
@@ -33,8 +33,7 @@ extern "C" { }
|
|
5 |
#[cfg_attr(target_os = "windows", link(name = "setupapi"))]
|
|
6 |
extern "C" { }
|
|
7 |
|
|
8 |
-#[cfg_attr(all(feature = "static", target_os = "linux"), link(name = "hidapi-libusb", kind = "static"))]
|
|
9 |
-#[cfg_attr(all(not(feature = "static"), target_os = "linux"), link(name = "hidapi-libusb"))]
|
|
10 |
+#[cfg_attr(target_os = "linux", link(name = "hidapi-libusb"))]
|
|
11 |
#[cfg_attr(all(feature = "static", not(target_os = "linux")), link(name = "hidapi", kind = "static"))]
|
|
12 |
#[cfg_attr(all(not(feature = "static"), not(target_os = "linux")), link(name = "hidapi"))]
|
|
13 |
extern "C" {
|
src/hidapi-sys/debian/patches/remove-static-feature.diff
less
more
0 | |
Index: hidapi-sys/Cargo.toml
|
1 | |
===================================================================
|
2 | |
--- hidapi-sys.orig/Cargo.toml
|
3 | |
+++ hidapi-sys/Cargo.toml
|
4 | |
@@ -23,7 +23,3 @@ license = "WTFPL"
|
5 | |
repository = "https://github.com/meh/rust-hidapi-sys"
|
6 | |
[dependencies.libc]
|
7 | |
version = "0.2"
|
8 | |
-
|
9 | |
-[features]
|
10 | |
-build = ["static"]
|
11 | |
-static = []
|
0 | 0 |
use-system-library.diff
|
1 | |
remove-static-feature.diff
|
|
1 |
disable-static-compilation.diff
|