[mpich-discuss] How to modify CFLAGS
Darius Buntinas
buntinas at mcs.anl.gov
Mon Aug 22 10:49:31 CDT 2011
Or better yet, add "--enable-g=dbg"
-d
On Aug 22, 2011, at 9:38 AM, Anthony Chan wrote:
>
> You need to run configure before doing make. See MPICH2's top-level README.
> Basically, do
>
> ./configure CFLAGS=-g --prefix=<MPICH2_INSTALL_DIR>
> make
> make install
>
> *.sm files are template files for MPICH2 developers, you don't need to
> worry about them.
>
> A.Chan
>
> ----- Original Message -----
>> Hi,
>> I notice that the CFLAGS in all Makefiles of mpich2 is already set to
>> " -O2 $(MPICH2_MAKE_CFLAGS)". I want to know if I can change the
>> CFLAGS in
>> specified Makefile. For example, I want to compile source files in
>> "pt2pt"
>> with additional "-g" option. How should I modify the corresponding
>> Makefile.sm.
>>
>> Thanks.
>>
>> --
>> zhouxu
>>
>> _______________________________________________
>> mpich-discuss mailing list
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list