[petsc-users] Weird handling of compiler flags by the build system

meator meator.dev at gmail.com
Mon Jul 1 11:08:45 CDT 2024


On 7/1/24 5:23 PM, Stefano Zampini wrote:
>     This is unfortunate. I assume that patching the buildsystem or some
>     other trickery will be necessary if what you're saying is true.
> 
> I admit it is not so standard, but Satish always opposed this.
> No need to hack the buildsystem, just use COPTFLAGS, CXXOPTFLAGS and 
> FOPTFLAGS

I will try using *OPTFLAGS, thanks!

> I don't think you should use Makefile.user. That is there as a sort of 
> template/placeholder. The extra variables are not included in a standard 
> usage of pkgconfig, so I don't think this issue is "severe"

This is not a choice I get to make. The users of my package may choose 
to use PETSc however they want. And /usr/share/petsc/Makefile.user or 
/usr/share/petsc/CMakeLists.txt are officially supported ways of using 
PETSc, so deciding to ignore these use cases and leaving junk flags in 
/usr/lib/pkgconfig/petsc.pc is not tolerable for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1A14CB3464CBE5BF.asc
Type: application/pgp-keys
Size: 6275 bytes
Desc: OpenPGP public key
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240701/59c1b109/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240701/59c1b109/attachment-0001.sig>


More information about the petsc-users mailing list