On Oct 5, 2011, at 6:40 AM, katja wrote:
On Tue, Oct 4, 2011 at 11:38 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
the proper way is to use CPPFLAGS="-DPD_FLOAT_PRECISION=64",
But now you undo the CPPFLAGS as defined in the makefile. I didn't know how to add to the CFLAGS from the command line, but found a solution here:
http://theory.uwinnipeg.ca/localfiles/infofiles/make/ make_66.html#SEC65
It requires a small adaptation to the makefile. Instead of:
CFLAGS = ....
comes:
override CFLAGS += .....
Now you can add to CFLAGS from the command line, like so:
make CFLAGS="-DPD_FLOAT_PRECISION=64"
Note that the CFLAGS in the makefile now have precedence and you can only add to it from the command line, not override it.
For the sake of this dev branch, I think we can have it automatically detect 32-bit vs. 64-bit platforms, and set accordingly. Does that work for people?
.hc
----------------------------------------------------------------------------
If you are not part of the solution, you are part of the problem.