No subject
Wed Nov 14 13:37:45 EST 2007
"CODE OPTIMIZATION
If you would like to set compiler optimisations, for a possibly faster
binary, type (don't enter a ";" anywhere):
CFLAGS=-O ./configure
or,
setenv CFLAGS -O
./configure
whichever works on your shell. Use -O2 instead of -O if your compiler
supports this (note: O is the letter, not zero). Using "gcc" compiler, you
can also specify processor specific flags (examples):
CFLAGS="-mcpu=k6 -O2" # AMD K6 processor
CFLAGS="-mcpu=pentium" # Intel Pentium processor
CFLAGS="-mcpu=pentiumpro" # Intel PentiumPro processor
To find out optional CFLAGS for your platform, enter:
gcc -dumpspecs
"
So you can use
CFLAGS=-O2 ./configure
make
make install
Hope this helps,
Markus
More information about the grass-dev
mailing list