Skip to content

Don't hard-code -ldl -lpthread for format_args #2890

Closed
@tschwinge

Description

@tschwinge

As of #2822 "Start reusing rustc's format_args parser", we add -ldl -lpthread to LIBS in gcc/rust/Make-lang.in. Instead of doing this unconditionally, we should check if those libraries exist at all, and which are actually necessary -- query Cargo about crate's linker flags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    miscupstreamIssue regarding upstreaming gccrs into GCC

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions