But you can't take .so files and make one "static" binary out of them.
The things I know of and can think of off the top of my head are:
1. appimage https://appimage.org/
2. nix-bundle https://github.com/nix-community/nix-bundle
3. guix via guix pack
4. A small collection of random small projects hardly anyone uses for docker to do this (i.e. https://github.com/NilsIrl/dockerc )
5. A docker image (a package that runs everywhere, assuming a docker runtime is available)
7. https://en.wikipedia.org/wiki/Snap_(software)
AppImage is the closest to what you want I think.
https://appimage.github.io/appimagetool/
Myself, I've committed to using Lua for all my cross-platform development needs, and in that regard I find luastatic very, very useful ..
einpoklum•1h ago
Splizard•46m ago
quesomaster9000•44m ago
https://justine.lol/cosmopolitan/
oguz-ismail2•30m ago
if you configure binfmt_misc
>Windows
if you disable Windows Defender
>OpenBSD
only older versions
sambuccid•19m ago
greyw•13m ago
Gave up them afterwards. If I need to tweak dependencies might as well deal with the packet manager of my distro.
iberator•8m ago