Satish Balay <[email protected]> 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.

Attachment: pgpHEIEI60Uat.pgp
Description: PGP signature

Reply via email to