We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03b95f commit a2e2a01Copy full SHA for a2e2a01
x11/Cargo.toml
@@ -54,6 +54,9 @@ xtest = ["xtst"]
54
xtst = []
55
dox = []
56
57
+# Enable static linking of X11 dependencies.
58
+static = []
59
+
60
[dependencies]
61
libc = "0.2"
62
x11/build.rs
@@ -31,12 +31,15 @@ fn main() {
31
("xxf86vm", "1.1", "xf86vmode"),
32
];
33
34
+ let statik = env::var_os("CARGO_FEATURE_STATIC").is_none();
35
36
for &(dep, version, feature) in deps.iter() {
37
let var = format!("CARGO_FEATURE_{}", feature.to_uppercase().replace('-', "_"));
38
if env::var_os(var).is_none() {
39
continue;
40
}
41
pkg_config::Config::new()
42
+ .statik(statik)
43
.atleast_version(version)
44
.probe(dep)
45
.unwrap();
0 commit comments