Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2014 closed enhancement (fixed)

Switch to more conventional debug build operation

Reported by: hobu Owned by: Mateusz Łoskot
Priority: high Milestone: 1.5.0
Component: ConfigBuild Version: unspecified
Severity: normal Keywords: autoconf configure debug
Cc: warmerdam

Description

We should support --enable-debug as an option for turning on -g debug info from configure.

Change History (5)

comment:1 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added
Keywords: autoconf configure debug added

Frank & Hobu,

I think I can work on it if you want.

comment:2 by warmerdam, 16 years ago

Cc: warmerdam added; Mateusz Łoskot removed
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot

Mateusz,

turning over to you for 1.5.

comment:3 by warmerdam, 16 years ago

Priority: normalhigh

r13129 (for #1929) broke the old CFG support, so please push ahead with this ticket. Strip out old CFG support and do things more normally.

comment:4 by warmerdam, 16 years ago

Resolution: fixed
Status: newclosed
Summary: --enable-debug and --disable-debugSwitch to more conventional debug build operation

I have stripped out all the CFG stuff, and modified to operate more normally. The CFLAGS and CXXFLAGS environment variables should be set before running configure to control compiler options. Done in trunk as r13224.

comment:5 by warmerdam, 16 years ago

At Andrey's suggestion I have added --enable-debug which will try and strip -O or -O2 off the flags, and add -g -DDEBUG. Committed in r13230.

Note: See TracTickets for help on using tickets.