LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2004-01-13 18:37:43


On Jan 13, 2004, at 3:20 PM, Robert Latham wrote:

>>> How do I specify this -fPIC option. Do I need to do this at the
>>> configure step?
>>
>> You should not need to, no.
>
> You would need to if building shared libraries on any platform other
> than x86. Add it to the CFLAGS env. variable before running
> configure.

Actually, with LAM's configure script, using --enable-shared will do
the "right" thing for just about every platform (especially all the
x86-based platforms). libtool does a reasonable job of automating this
for the user. If you only want shared library support, I recommend
using

   --enable-shared --disable-static

or you will build every file twice (once for PIC code, once for non-PIC
code). Mac OS X is the exception to this rule - you have to leave
static libraries enabled on Mac OS X for very bizarre linker reasons
(note that MPI applications don't have to use static libraries - the
the LAM binaries have to be statically linked).

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/