[geos-devel] config script adds too many compiler options

strk at refractions.net strk at refractions.net
Tue Nov 9 14:06:47 EST 2004


On Tue, Nov 09, 2004 at 02:01:47PM -0500, Mark Coletti wrote:
> geos-config --cflags emits "-g -O2" in addition to providing the
> include directory path.  config scripts should never set these
> options.  For example, setting "-O2" can make debugging difficult as
> the optimizer may relocate or outright eliminate source code.
> 
> Cheers,
> 
> Mark

You can use geos-config --includes to get includes only (w/out the -I).
If no one has arguments in favor of current --cflags I'd remove
-g -O2 from it.

--strk;

> -- 
> I'm taking reality in small doses to build immunity.
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel



More information about the geos-devel mailing list