[petsc-dev] CFLAGS and COPTFLAGS

Jed Brown jed at jedbrown.org
Sun Jan 19 18:44:02 CST 2014


Satish Balay <balay at mcs.anl.gov> writes:
> To clarify - petsc configure ignores CC etc from env - but the following is accepted.
>
> ./configure CC=gcc CXX=g++ FC=gfortran

Yeah, though in an effort to allow package scripts to be concise and
less error-prone, they put the system-desired CC, CXX, CFLAGS, LDFLAGS,
etc. into the environment of the packaging script.  For PETSc, this
means writing

  ./configure CC="$CC" CFLAGS="$CFLAGS" CXX="$CXXFLAGS" ....

and if you forget one, the package may not be built correctly.  It
definitely makes package maintainers' lives easier to not try to be
smart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140119/d69aee9c/attachment.sig>


More information about the petsc-dev mailing list