[mpich-discuss] How to modify CFLAGS

Anthony Chan chan at mcs.anl.gov
Mon Aug 22 09:38:35 CDT 2011


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


More information about the mpich-discuss mailing list