Skip to content

rustc fails to compile when -L /usr/local/lib (on Linux, at least) #20342

Closed
@rrichardson

Description

@rrichardson

rust-bindgen sets cargo:rustc -L to /usr/local/lib via build.rs

When this happens, linking fails because duplicate candidate dylibs are found in the bootstrap libs: (/usr/local/lib) and the rustlib (/usr/local/lib/rustlib/../lib)

Specific errors below:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.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