mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
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
@ -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 New Issue
Block a user