[petsc-dev] Add Flags To CFLAGS In Configure

Satish Balay balay at mcs.anl.gov
Mon Mar 1 13:40:25 CST 2021


We have defaults for COPTFLAGS - and user can override them [but not add to them]

Satish

On Mon, 1 Mar 2021, Matthew Knepley wrote:

> This is what COPTFLAGS is intended for.
> 
>   Thanks,
> 
>     matt
> 
> On Mon, Mar 1, 2021 at 2:35 PM Jacob Faibussowitsch <jacob.fai at gmail.com>
> wrote:
> 
> > Hello All,
> >
> > Is there a configure option to add flags to whatever configure picks as
> > your CFLAGS/COPTFLAGS? Something like --CFLAGS+=“-my-flag1 -my-flag2”.
> >
> > I often find myself wanting to add additional debug flags or warning
> > flags, but so far the only method that as worked has been to run configure
> > once, copy the CFLAGS, and reconfigure with my flags added to the end of
> > the list.
> >
> > Best regards,
> >
> > Jacob Faibussowitsch
> > (Jacob Fai - booss - oh - vitch)
> > Cell: (312) 694-3391
> >
> >
> 
> 


More information about the petsc-dev mailing list