Skip to content

[GR-50345] Get whether it is a static link when building a native image #7555

Open
@Glavo

Description

@Glavo

I'm fixing some native-image related issues for Jansi.

Jansi uses FFM or JNI by default, but they do not work in statically linked native images. Therefore, I provide a slower but working implementation. The specific implementation to be used is determined at build time.

However, there seems to be no way for me to know at build time whether the native image is statically linked, so users has to add options manually to make it work.

Can you add some system properties to tell whether the program is statically linked and whether the libc used is musl or glibc?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions