Exe files not interchangeable among identical Linux systems

Before reaching for the -mcpu flag, I suggest passing a -target parameter. When you don’t specify the target, it defaults to the host machine, including the OS version. When you specify the target, it not only picks a baseline CPU by default but also picks a baseline OS version to target.

-target x86_64-linux

17 Likes