3 ms·
> Compiling on one distro and then expecting it to work on another distro is a foolhardy errand. Only if you link random libs you find in on the system. The ba
by account42 4y ago
> Compiling on one distro and then expecting it to work on another distro is a foolhardy errand.
Only if you link random libs you find in on the system. The base system libs making up a Linux desktop (glibc, xlib, libasound, libpulse*, libGL, etc.) all are pretty good about maintaining backwards compatibility so you only need to build against the oldest version you want to support and it will run on all. Other libraries you should distribute yourself or even statically link with their symbols hidden. This approach works for many projects.