Skip to content

Linking with gold does not search /usr/local/lib #30784

Closed
@brson

Description

@brson

If it thinks it can rustc will link with the gold linker. Unfortunately ld.bfd and ld.gold do not search the same paths for libraries. The bfd linker looks in the runtime linker path, while gold does not. This creates a very confusing difference in behavior.

Original report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions