[mpich-discuss] statically linked mpiexec

Kenneth Raffenetti raffenet at mcs.anl.gov
Mon Apr 7 07:26:17 CDT 2014


Andy,

The official way is to add '--disable-shared' to your configure line.

Ken

On 04/07/2014 05:47 AM, Andy May 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 at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss



More information about the discuss mailing list