LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.83k stars 642 forks source link

Musl libc support #956

Open Timarrr opened 10 months ago

Timarrr commented 10 months ago

Description

LWJGL is linked against the glibc as of now, which causes musl users to be unable to work with the library without significant restrictions. Thus, I'm asking to add Musl support to this wonderful piece of software!

CuriouslyCurious commented 9 months ago

Just ran into this issue when messing around with modding Minecraft using the Fabric API and I agree with the original poster that compiling against musl would be very nice. Seeing as it is mostly a Java application and glibc is only gated against twice in the source code it does not seem at a glance to be too hard to get it compiling on musl. I will do a quick check to see how feasible it is.

sertonix commented 9 months ago

There are a few patches here that allow compiling against musl to some extend: https://gitlab.alpinelinux.org/alpine/aports/-/commit/5eb9fb757ecbba2666a8e8ed6f921bbae66b0446

They were never finished though. It would be really nice if that was fixed.

(Also duplicate of #833)