Skip to content

"Hello world!" binary links a bunch of unnecessary libraries #29482

Closed
@taralx

Description

@taralx

Looking at a simple println!("hello world") binary, I get these:

libdl (why?)
libpthread (I'm not using threads)
librt (why?)
libgcc_s (apparently for unwinding, despite my not using any dynamically linked crates)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions