What are my options for static linking on Linux with software OpenGL support?


I would like to provide fully static binaries for some open-source SDL2 based Linux games, for example LambdaHack.

I am aware that with static linking, I won’t be able to get hardware accelerated OpenGL support. That’s fine, because the games are not very demanding.

However, it is currently unclear to me how I would go about making or changing an SDL application that used software OpenGL rendering (such as via Mesa swrast == llvmpipe), such that the software rendered results are then drawn onto the normal X11 screen.

It would be amazing if somebody in the know could shed some light on what my options here are.


1 Like