In Linux, downloaded a program source and want it to be statically linked. Have a huge Makefile there, I
./configure make
to compile. preh
Most autoconf generated configure script will allow you to make a static build:
autoconf
configure
./configure --enable-static make
If that doesn't work, you may be able to pass linker flags in via LDFLAGS, like this:
LDFLAGS
./configure LDFLAGS=-static