KEMBAR78
Statically link libstdc++ at least for musl builds · Issue #729 · async-profiler/async-profiler · GitHub
Skip to content

Statically link libstdc++ at least for musl builds #729

@rrva

Description

@rrva

A lot of jdk docker images are
based on alpine without libstdc++ preinstalled. It is great to be able to use libasyncprofiler without having to modify the docker image that java is running on.

Please link libstdc++ statically but keep other dependencies like musl libc dynamically linked.

I can make a pull request if this is something that would be ok to have in all musl release builds, I am guessing something like this

g++ -shared -o your_library.so your_object_files.o -static-libstdc++ -Wl,-Bdynamic -lc

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