[petsc-users] How do I supply the compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS

Balay, Satish balay at mcs.anl.gov
Tue May 28 09:30:54 CDT 2019


Configure.log shows '--with-pic=1' - hence this error.

Remove '--with-pic=1' and retry.

Saitsh

On Tue, 28 May 2019, Inge Gutheil via petsc-users wrote:

> Dear PETSc list,
> when I try to install the petsc-3.11.2 library as a static library - for
> some reasons I do not want the dynamic library -
> I suddenly get the error
> 
> Cannot determine compiler PIC flags if shared libraries is turned off
> Either run using --with-shared-libraries or --with-pic=0 and supply the
> compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
> 
> Attached find the configure.log
> I added --with-pic=0 as can seen from configure.log but I do not know
> where I can find how to set the compiler PIC flag via CFLAGS, CXXXFLAGS,
> and FCFLAGS, at least -fPIC seems to be not sufficient, so what can I do?
> 
> Wit 3.11.1 I did not have that problem.
> 
> Regards
> Inge
> 
> 



More information about the petsc-users mailing list