From 766997247c8ce9602a940bc44ad422fbe461f270 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 29 Nov 2023 09:51:55 -0500 Subject: [PATCH] Revert "Introduce static features" This reverts commit c9b6db548b4b3d5acf80f99c940e2831c50b24a1. Suggested in Fedora Linux package review: https://bugzilla.redhat.com/show_bug.cgi?id=2249863#c4 --- Cargo.toml | 4 ---- lz4-sys/Cargo.toml | 4 ---- lz4-sys/build.rs | 1 - 3 files changed, 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b681ca3c..5eae413fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/lz4-sys/Cargo.toml b/lz4-sys/Cargo.toml index 4b233ddb5..dd1d13aca 100644 --- a/lz4-sys/Cargo.toml +++ b/lz4-sys/Cargo.toml @@ -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 = [] diff --git a/lz4-sys/build.rs b/lz4-sys/build.rs index c8e68b3e4..885b6311c 100644 --- a/lz4-sys/build.rs +++ b/lz4-sys/build.rs @@ -18,7 +18,6 @@ fn run() -> Result<(), Box> { let target = get_from_env("TARGET")?; if !target.contains("windows") - && !cfg!(feature = "static") && pkg_config::Config::new() .print_system_libs(false) .cargo_metadata(true)