3 ms·
If you want to go even further, use something like this https://chromium.googlesource.com/linux-syscall-support https://chromium.googlesource.com/linux-syscall-
by timothine 4y ago
If you want to go even further, use something like this https://chromium.googlesource.com/linux-syscall-support https://chromium.googlesource.com/linux-syscall-support and compile statically.
The syscall interface is stable enough that you can create binaries that will run against Linux kernels from decades ago, if needed.
- capableweb 4y agoIf you want to go even further than that, you can use APE (αcτµαlly pδrταblε εxεcµταblε) which lets you compile a single binary that can run on Linux, MacOS, Windows, FreeBSD, OpenBSD, and NetBSD.
- loupol 4y agoCosmopolitan[0] is indeed worth mentioning here. It's an amazing project. [0] https://github.com/jart/cosmopolitan https://github.com/jart/cosmopolitan
- badsectoracula 4y agoAmusingly when i saw the title i assumed it'd be about APE :-P.
- nashashmi 4y agoI miss QT web browser. It was a single binary that uses chrome engine.
- bjackman 4y agoWhy not just statically link against a normal libc?
- chungy 4y agoThat's basically musl, and yes, that is the better idea.
- edflsafoiewq 4y agoThe article explains > Don’t try to statically link libc or libstdc++, this may cause trouble with other system libs you’ll use (because the system libs dynamically link libc and maybe libstdc++ - probably in versions different from what you linked statically. That causes conflicts.)