[petsc-dev] Add Flags To CFLAGS In Configure

Jacob Faibussowitsch jacob.fai at gmail.com
Mon Mar 1 13:40:51 CST 2021


Alternatively have configure recognize the “+=“ operator?

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
Cell: (312) 694-3391

> On Mar 1, 2021, at 13:39, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> Yeah - we don't have the 'add-to-defaults' feature. Currently its either 'use defaults' or 'replace defaults'
> 
> Perhaps we need EXTRA_CFLAGS etc interface..
> 
> Satish
> 
> On Mon, 1 Mar 2021, Jacob Faibussowitsch 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
>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210301/b66e460f/attachment-0001.html>


More information about the petsc-dev mailing list