diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2017-07-29 16:05:36 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2017-07-29 16:07:40 +0300 |
commit | fdbf7012ba371cd7eb7f22e7aedc32511b0867e4 (patch) | |
tree | 9db0de0140d72da3c900cca99a82d281e87f49ea /configure.ac | |
parent | b6a173fad54f25f6e1cb0c3eaf230ac11fb6a070 (diff) | |
download | nasm-fdbf7012ba371cd7eb7f22e7aedc32511b0867e4.tar.gz |
configure: Add --enable-gdb option
When one needs to run nasm under GDB
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.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 8db7c726..8ac4994f 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 |