|
|
|
|
|
by yupyupyups
522 days ago
|
|
You can create portable apps on Linux that will work for years to come. Bundle everything except for very core libraries, even libstd++. Things to NOT bundle would be glibc and any opengl implementation. To make apps backwards compatible with older versions of Linux, compile the app on a system with the oldest glibc you wish to support (because glibc is forwards compatible, but not backwards compatible). |
|
> (because glibc is forwards compatible, but not backwards compatible).
I've lost count of times I've had "portable" binaries not work because I'm using a newer version of glibc and the binary was compiled for Ubuntu/Debian.
The only "standardised" way of making native Linux apps portable and "work for life" is to use the thing that worked in the server space, containers, Flatpak being the vendor-neutral and more widely supported for desktop apps.