Am 03.07.2010 um 04:20 schrieb Lisandro Dalcin:
> On 28 June 2010 04:26, Reuti <reuti_at_[hidden]> wrote:
>> I saw makefiles, where the compilers (i.e. MPI wrappers) were only
>> used for
>> compiling the source to object files. Later on these were still
>> linked with
>> `gcc` or `ld`. Hence the MPI library must be accessed also for the
>> step by `mpicc` instead of `gcc` when setting $LD is supported, or
>> set in
>> e.g. $LDFLAGS for the latter.
>> Why is there no `mpild` to do this automatically then?
> Why not use LD=mpicc ?
This will only work, when it is intended to use the original compiler
as an interface to the linker. When it's calling the plain `ld` with
native options like "-rpath /home/reuti/lib" this won't work, as e.g.
for `gcc` this has to be coded like " -Wl,-rpath -Wl,/home/reuti/lib"
to be forwarded to the linker.
`mpild` should forward the plain `ld` options but automatically add
all necessary Open MPI libs.
> Lisandro Dalcin
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
> users mailing list