Building SDL in debug mode on Linux

Is there any option for sdl ./configure script to build library in debug
mode?

I want to use gdb for sdl functions.

Thanks!

Matko Klaic

-g is the default, I believe. If not, add it to CFLAGS, as in

CFLAGS=ā€™-O0 -gā€™ ./configureOn 03/17/2013 06:08 PM, Matko Klai? wrote:

Is there any option for sdl ./configure script to build library in debug mode?

I want to use gdb for sdl functions.

Thanks!

Matko Klaic


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks John,

installing libsdl1.2-dbg package resolved my issue. I can run gdb through
library code now.

Best!

MatkoOn Sun, Mar 17, 2013 at 11:43 PM, John wrote:

-g is the default, I believe. If not, add it to CFLAGS, as in

CFLAGS=ā€™-O0 -gā€™ ./configure

On 03/17/2013 06:08 PM, Matko Klai? wrote:

Is there any option for sdl ./configure script to build library in debug
mode?

I want to use gdb for sdl functions.

Thanks!

Matko Klaic

_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org