diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2017-07-29 16:05:36 +0300 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2017-08-16 14:59:25 -0700 |
commit | d7a547336865b688e50278f24cc598c358d5d577 (patch) | |
tree | 2bfce288ba5ba0460825caa059a095ef6a1a5dee /configure.ac | |
parent | 750048723eb837b663828ff25e872b6054bebb38 (diff) | |
download | nasm-d7a547336865b688e50278f24cc598c358d5d577.tar.gz |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bc8a1a2b..37f51afd 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |