Support rustc-link-args
in order to properly pass -pthread
and flags
#7796
Labels
A-build-scripts
Area: build.rs scripts
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
T-cargo
Team: Cargo
On rust-lang/rust#62117 it was discovered that certain C/C++ dependencies need to be linked with
-pthread
instead of-lpthread
on certain platforms such as riscv64 and some arm cases.Currently there is no way for a
build.rs
script to express this however. The closest thing isrustc-dylib-link-args
which only applies when building a cdylib.The text was updated successfully, but these errors were encountered: