[petsc-users] How do I supply the compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
Inge Gutheil
i.gutheil at fz-juelich.de
Tue May 28 09:20:00 CDT 2019
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
--
Inge Gutheil
Juelich Supercomputing Centre
Institute for Advanced Simulation
Forschungszentrum Juelich GmbH
52425 Juelich, Germany
Phone: +49-2461-61-3135
Fax: +49-2461-61-6656
E-mail:i.gutheil at fz-juelich.de
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 117057 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190528/12936883/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190528/12936883/attachment-0001.sig>
More information about the petsc-users
mailing list