If you can compile a functioning RPi2 build, you can almost as easily compile an x86[_64] Linux build on the same go. Hell, you don’t need to compile on a RPi since you can cross-compile even Window$ apps on a single Linux machine.
You can take a look at the GZDoom GitHub, for instance, to see how they’re doing it, if your code uses as little platform-/architecture-specific code as possible like GZDoom.