On 2010-12-28 15:50+0100 Arjen Markus wrote:

> Hi,
>
> recently, Brad Harder asked if and how it is possible to specify
> additional flags when compiling a particular part of PLplot. In this
> case it is the flag -DTCL_MEM_DEBUG for the Tcl bindings.
> (See:
> https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3140460&group_id=2915
> )
>
> How can we support such a thing? Do we need to adapt the CMake files to
> a large extent or is it a matter of a few lines of code only? Do we want
> to make it a general feature? (I can imagine any number such flags to
> be passed at some point for a very specific purpose/platform)

Just specify CFLAGS as an environment variable before running the
cmake command in an initially empty build tree, e.g.,

export CFLAGS=-DTCL_MEM_DEBUG

This macro option will then be applied to all C compilations, but I
believe that should be OK since there should be no effect except for 
C source code supporting our Tcl bindings.

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
__________________________

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to