Closed
Description
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 is rustc-dylib-link-args
which only applies when building a cdylib.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
-pthread
flag when linking on GNU/Linux rust-lang/rust#68128joshtriplett commentedon Jan 18, 2020
#7811
XieJiSS commentedon Dec 11, 2021
Just a reminder: This should be closed by #8441
ehuss commentedon Dec 11, 2021
Closing, as it does sound like this is resolved, at least when using build scripts (docs).