Skip to content

Wrong program interpreter on musl targets with cc #94864

Closed
@Yuri6037

Description

@Yuri6037

When a cargo project, which depends on the cc crate and a C++ runtime, is built on an musl target, the generated binary is broken: the program interpreter is set to "/lib/ld-linux-aarch64.so.1" instead of "/lib/ld-musl-aarch64.so.1".

After having posted an issue in cc crate (rust-lang/cc-rs#635) it appears the problem is rustc choosing the wrong linker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions