Skip to content

Support rustc-link-args in order to properly pass -pthread and flags #7796

@infinity0

Description

@infinity0

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

No one assigned

    Labels

    A-build-scriptsArea: build.rs scriptsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`T-cargoTeam: Cargo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions