Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rdkafka-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn build_librdkafka() {
configure_flags.push("--disable-zlib".into());
}

if env::var("CARGO_FEATURE_CURL").is_ok() {
if env::var("CARGO_FEATURE_CURL").is_ok() || env::var("CARGO_FEATURE_CURL_STATIC").is_ok() {
// There is no --enable-curl option, but it is enabled by default.
if let Ok(curl_root) = env::var("DEP_CURL_ROOT") {
cflags.push("-DCURLSTATIC_LIB".to_string());
Expand Down Expand Up @@ -240,7 +240,7 @@ fn build_librdkafka() {
config.define("WITH_ZLIB", "0");
}

if env::var("CARGO_FEATURE_CURL").is_ok() {
if env::var("CARGO_FEATURE_CURL").is_ok() || env::var("CARGO_FEATURE_CURL_STATIC").is_ok() {
config.define("WITH_CURL", "1");
config.register_dep("curl");
if let Ok(curl_root) = env::var("DEP_CURL_ROOT") {
Expand Down
2 changes: 1 addition & 1 deletion rdkafka-sys/librdkafka