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:
parent
750048723e
commit
d7a5473368
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue