Skip to content

Add support for specifying external libraries by filename #11802

Closed
@ghost

Description

Some libraries have multiple filenames:

set(ZLIB_NAMES z zlib zdll zlib1 zlibd zlibd1)

There is currently no way to tell rustc that #[link(name = "z")] should be satisfied by zlib1.dll.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-feature-requestCategory: A feature request, i.e: not implemented / a PR.P-mediumMedium priorityT-cargoRelevant to the cargo team, which will review and decide on the PR/issue.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