[gdal-dev] Debug builds on Unix

Frank Warmerdam warmerdam at pobox.com
Tue Dec 4 13:49:19 EST 2007


Ari Jolma wrote:
> Frank Warmerdam kirjoitti:
>> also reworked how debug builds are requested for GDAL on unix-like 
>> builds.
>>
> 
>> While I don't especially love this approach, it seems to be inline 
>> with unix
>> packaging standards and will hopefully make GDAL easier for folks to 
>> use since
>> it works more like everything else.
> 
> Why not have something like --enable-debug for configure? For example 
> GTK seems to have that switch. What are these unix packaging standards 
> that you refer to?
> 
> I've always found it difficult to turn on the debugging since it's been 
> through this environment variable.

Ari,

Andrey made the same suggestion, and I have incorporated support for
--enable-debug.  It will attempt to strip optimization flags out of the
CFLAGS and CXXFLAGS and add "-g -DDEBUG".  Skipping that and setting
CFLAGS and CXXFLAGS via the environment will also work as noted earlier.
Though I should mention I forgot to mention adding -DDEBUG without which
assertions will not be compiled in.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list