configure: Add --enable-gdb option

When one needs to run nasm under GDB

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
Cyrill Gorcunov 2017-07-29 16:05:36 +03:00 committed by H. Peter Anvin
parent 750048723e
commit d7a5473368

View file

@ -32,6 +32,12 @@ PA_ARG_DISABLED([optimization],
AS_IF([test x"$pa_init_cflags" = x],
[CFLAGS=`echo "$CFLAGS" | sed -e "s/-O2/$pa_optimize/"`])
dnl Compile and link with dwarf debug
PA_ARG_ENABLED([gdb],
[disable optimization and compile with extra debug information for GDB debugger],
[CFLAGS=`echo "$CFLAGS" | sed -e "s/\(-O2\|-O3\)/-O0/"`
PA_ADD_CLDFLAGS([-ggdb3])])
dnl Check for library extension
PA_LIBEXT