[GRASS5] configure script and optimization

Markus Neteler neteler at itc.it
Fri Sep 2 09:57:11 EDT 2005


To separate the threads, I repost it again:

On Thu, Sep 01, 2005 at 04:06:33PM +0200, Markus Neteler wrote:
...
> I just see that the damn optimization creeped in again.
> 
> When I do
> 
> CFLAGS="-g -Wall" ./configure ...
> checking host system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc -g -Wall ) works... yes
> checking whether the C compiler (gcc -g -Wall ) is a cross-compiler... no
> ...
>  C compiler:                  gcc -g -Wall
>  C++ compiler:                c++ -g -O2
> ...
> 
> But:
> grep CFLAGS_OPTIMIZE ~/grass61/include/Make/Platform.make
> CFLAGS_OPTIMIZE     = -O2
> 
> I have to manually fix that. Seems to be evil in aclocal.m4
> around line 756:
> 
>         Linux*)
>             SHLIB_CFLAGS="-fPIC"
>             SHLIB_LD_LIBS='${LIBS}'
>             SHLIB_SUFFIX=".so"
> 
>             CFLAGS_OPTIMIZE=-O2
>             # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
>             # when you inline the string and math operations.  Turn this off to
>             # get rid of the warnings.
>             #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

Paul, do you remember the reason for this modification?
 http://grass.itc.it/pipermail/grass-commit/2004-July/012136.html

 
Markus




More information about the grass-dev mailing list