Skip to content

link_args attribute should be applicable to crates #2217

Closed
@brson

Description

@brson

I frequently write things like

    #[link_args = "-L. -lcairo -lazure"]
    #[nolink]
    native mod m { }

because I need to pass some additional flags to the compiler. I shouldn't need the empty mod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions