Frivolous native-static-libs warning when building a cdylib with Cargo-C on macOS #142582
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Try building GStreamer's gst-plugins-rs against the 1.26 SDK. (Linked the branch in which I had this issue happen.)
Do not use
cargo build
, use cargo-c'scargo cbuild
command in order to generate the dylibs and the pkg-config modules:Current output
Desired output
Rationale and extra context
#138139 introduced a new warning for when
native-static-libs
is used against a non-staticlib
crate. This rustc flag is used by Cargo-C to determine the link line that should go inside the pkg-config module for the corresponding library.I do not know why the warning was introduced, but in non-
staticlib
, non-cdylib
crates like the one highlighted earlier, it seems to be redundant.Other cases
Rust Version
Anything else?
Downstream bug report: lu-zero/cargo-c#469
The text was updated successfully, but these errors were encountered: