--with-pic

Tim Kroeger tim.kroeger at cevis.uni-bremen.de
Thu Oct 8 03:47:05 CDT 2009


Dear all,

On a 64-bit system, I need to compile with the option "-fPIC" to be 
able to link with my application.  I configured PETSC with 
"--with-pic=fPIC", but still it seems to call the gfortran compiler 
with "-PIC" rather than "-fPIC" for some or all fortran source files. 
The compiler does not understand the "-PIC" option, hence prints an 
error message and exits.  How can I tell PETSc to use "-fPIC" instead?

Best Regards,

Tim

-- 
Dr. Tim Kroeger
tim.kroeger at mevis.fraunhofer.de            Phone +49-421-218-7710
tim.kroeger at cevis.uni-bremen.de            Fax   +49-421-218-4236

Fraunhofer MEVIS, Institute for Medical Image Computing
Universitaetsallee 29, 28359 Bremen, Germany



More information about the petsc-users mailing list