|
|
|
|
|
by sylware
1379 days ago
|
|
I would like too. But games needs to load system libs (which are linked to a glibc), and games are not fully libdl-ized (dlopen/dlsym/dlclose). Additionnaly gcc static libstdc++ does not have a "libdl" mode, or even worse: it seems it links to internal glibc symbols. The glibc "should" be libdl clean, minus of few C runtime services I guess. Basically, binaries of games cannot be "pure" and "simple" ELF64, in other words cannot load with any libc/elf runtime (musl/glibc/bionic?/etc) until there is the right symbol/version because of the static libstdc++ (some libgcc services too). They would have to fork libstdc++, third-party libs, and fully libdl-ized them (in theory, it is easy brutal work). c++ ABI is a nightmare, glibc symbol versioning is amok, well the devs of those components seem to ignore carefully that games have been available on elf/linux for 10 years. |
|
With games already being large downloads wouldn't it make sense to bundle many/most libraries directly instead of relying on system versions?
I did some experiments (with rust) and found musl builds and static linked libraries working quite fine.