Skip to content

Commit

Permalink
Revert "Introduce static features"
Browse files Browse the repository at this point in the history
This reverts commit c9b6db5.

Suggested in Fedora Linux package review:

https://bugzilla.redhat.com/show_bug.cgi?id=2249863#c4
  • Loading branch information
musicinmybrain committed Sep 13, 2024
1 parent 0284573 commit 7669972
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ lz4-sys = { path = "lz4-sys", version = "1.11.0" }

[dev-dependencies]
rand = ">=0.7, <=0.8"

[features]
# Enable this feature if you want to have a statically linked liblz4
static = ["lz4-sys/static"]
4 changes: 0 additions & 4 deletions lz4-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ libc = "0.2"
[build-dependencies]
cc = "1.1"
pkg-config = "0.3.9"

[features]
# Enable this feature if you want to have a statically linked liblz4
static = []
1 change: 0 additions & 1 deletion lz4-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fn run() -> Result<(), Box<dyn Error>> {
let target = get_from_env("TARGET")?;

if !target.contains("windows")
&& !cfg!(feature = "static")
&& pkg_config::Config::new()
.print_system_libs(false)
.cargo_metadata(true)
Expand Down

0 comments on commit 7669972

Please sign in to comment.