Skip to content

Do not output multiple #[link directives for same library? #475

Closed
@knopp

Description

@knopp

I just noticed a huge large amount of "USER32.lib" repetitions in the linker command.

It seems that for every method annotated with #[link(name = "USER32")] rust adds "USER32.lib" in linker command line, regardless of whether the method was called or not. Perhaps harmless but it doesn't seem right. I'm not entirely sure if this is windows-rs issue or rust issue, though it should be fixable on windows-rs side by not generating #link directive for a library more than once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions