[Trilinos-Users] Building shared version of trilinos...
Deji Akingunola
deji.aking at gmail.com
Thu Jul 24 08:27:46 MDT 2008
On Thu, Jul 24, 2008 at 10:15 AM, Luca Heltai <luca.heltai at gmail.com> wrote:
> Dear all,
>
> I've been trying all day to build a shared version of trilinos on a cluster
> where I have access, and no matter what I do, i keep getting these errors:
>
..
> The configure file I'm using is the following:
>
>
> ../configure \
> -C \
> --with-c-flags="-fPIC"\
> --with-cxx-flags="-fPIC"\
> CXXFLAGS="-fPIC"\
> CFLAGS="-fPIC"\
> LDFLAGS="-fPIC"\
> F77FLAGS="-fPIC"\
> --enable-shared \
> --with-gnumake \
> --disable-default-packages \
> --enable-teuchos-debug \
> --enable-nox \
> --enable-moocho \
> --prefix=/home/heltai/libs/trilinos-all-debug \
> --enable-epetra \
> --enable-epetraext \
> --enable-thyra \
> --enable-aztecoo \
> --enable-amesos \
> --enable-ifpack \
> --enable-ml \
> --enable-stratimikos \
> --enable-meros \
> --enable-pliris \
> --enable-sacado \
> --enable-anasazi
>
>
> Where I added -fPIC to all possible compilers (this made it advance from
> teuchos to atzecoo)...
> The static library is built ok, but then the above error appear every time
> the compile proceed in building the shared ones...
>
> Any idea?
>
Try adding '--with-ldflags="-fPIC" ' to your ./configure options.
Cheers,
Deji
More information about the Trilinos-Users
mailing list