On 2009-04-24 13:59-0500 Geoffrey Furnish wrote:

> I do have another question:  How do I accomplish what we might call a "debug
> build" ?
>
> I want all compilation units compiled with -g, and linked appropriately to
> allow running under the debugger.  Is there a simple way to pull that off?

Yes.  Use environment variables for CC, CXX, FC that include compile
options.  (See
http://www.miscdebris.net/plplot_wiki/index.php?title=Building_PLplot#.28Optional.29_set_environment_variables_to_specify_the_compilers_and_compiler_flags.)

For example,

export CC='gcc -g'
export CXX='g++ -g'
export FC='gfortran -g'

The environment variables must be set before cmake is executed in an empty
build directory.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to