Like the sibling comment points out, you can easily load your own by setting an env var:
SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0 ./MyGameThatIsStaticallyLinkedToSDL2
https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
Re:Building Outer Wonders for Linux
by badsectoracula on Sunday May 23, 2021 @09:50AM
(#27254991)
Yes i know about this (mentioned it in another reply) but this assumes there weren't any changes (like another dev made here) and really there isn't much of a reason to do that when you can just bundle the library with your binary or, even better, just rely on it being there and have it as part of your system requirements.
And TBH i'd rather games just assume SDL or is available and have it part of the system requirements (they already have other software requirements anyway), perhaps with a tiny launcher that tries to load the library dynamically and if fails it reports a more user friendly error. Most gamers on Linux will have it installed anyway since they'd be either launching from Steam (which bundles it as part of its own runtime) or also have other games installed.
(sadly SDL2 breaking ABI backward compatibility with SDL1 puts a wrench to that idea, which is why personally instead of using SDL2 i just write my own code - e.g. SDL2 fullscreen mode doesn't work in many window managers)