In Linux, downloaded a program source and want it to be statically linked. Have a huge Makefile there, I
./configure make
to compile. preh
If you cannot compile a static binary, I've had good results using Statifier.