When you run the configure script, use --enable-static and that should take care of what you're looking for. 

On Monday, April 7, 2014, Andy May <MayAJ1@cardiff.ac.uk> wrote:
Hi,

Does anyone know if there is a supported or recommended way to build MPICH such that it's binaries (eg. mpiexec) are statically linked?

At present, post building I'm running:

cd src/pm/hydra
eval ./configure `./config.status --config` --disable-pci --disable-libxml2
make CCLD='$(CC) -all-static'

which just disables two cases where the static libraries aren't available, then links statically, but is there a better or correct way to do this?

Many thanks,

Andy
_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss