Hi Tim,
* Tim Prince wrote on Mon, Jun 20, 2005 at 08:49:00PM CEST:
> Ralf Wildenhues wrote:
> >
> >The first issue is that, while linking, -fpic (-fPIC is an alias)
> >chooses the shared libraries from the libso/ directory over the static,
> >non-PIC ones from the lib/ directory (all below $PGI installation dir).
> >This might be regarded as poor design rather than an outright bug.
> >One interesting symptom is a C++ runtime failure:
> >
> >... Or adding -fPIC to the link line, which I have put in Libtool.
>
> My colleagues recommend use of -fPIC for lam-mpi builds with
> --enable-shared, regardless of compiler brand.
Well, that strikes me as odd. I don't build LAM much myself, so I can
only guess that this is either a Libtool or a LAM bug. Adding -fPIC
should not be necessary. Can you name systems/compilers/LAM versions
where this happens so it can be fixed?
Regards,
Ralf
|