Skip to content

rustbuild incorrectly builds std for musl targets #36143

Closed
@japaric

Description

@japaric

It copies the crt*.o objects from the host system libraries when it, instead, should copy them from the musl-root. Related code

It asks rustc to pass -ldl -lpthread and -lrt to the linker when it shouldn't because those are already included in musl libc.a. Related code

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions