[petsc-users] Override PETSc compile options

TAY wee-beng zonexo at gmail.com
Wed May 7 21:16:59 CDT 2014


On 8/5/2014 10:15 AM, Satish Balay wrote:
> On Wed, 7 May 2014, TAY wee-beng wrote:
>
>> Hi Matt,
>>
>>
>> Sorry, I mean during the compilation of my own codes using my own makefile.
>>
> $ grep Wall arch-linux2-c-debug/conf/petscvariables
> FC_LINKER_FLAGS =    -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0
> CC_FLAGS =  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0
> FC_FLAGS =  -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0
> CXX_FLAGS =  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -O0   -fPIC
> PCC_LINKER_FLAGS =    -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0
> PCC_FLAGS =  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0
> balay at asterix /home/balay/petsc (master)
>
>
> You can redefine the corresponding variables in your makefile as needed. [after the include directive]
Ya, that was what I was looking for!

Thanks!
>
> Satish



More information about the petsc-users mailing list