[gmx-users] Compiling GROMACS

Erik Lindahl lindahl at stanford.edu
Wed Mar 12 00:35:28 CET 2003


On Tuesday, Mar 11, 2003, at 13:39 US/Pacific, James O'Dell wrote:

> What is the recommended way to configure GROMACS so that I can compile
> it with minimal optimization and with symbols, i.i. -g -O2.
>
> I was looking for a configure option but I don't seem to see it.
>
> I'm trying to9 debug a nasty crash.
>

Hi Jim,

"-g -O2" are reasonable options. You can select them in two ways:

1. Set the environment variable CFLAGS to "-g -O2" before running the 
configure script. If you have already built Gromacs you should issue a 
"make distclean" first (before rerunning configure).

or

2. Run "make clean" if you already built gromacs. Then issue the 
command:  make CFLAGS="-g -O2".


Cheers,

Erik




More information about the gromacs.org_gmx-users mailing list