From: nasm-bot f. C. G. <gor...@gm...> - 2017-07-29 13:09:35
|
Commit-ID: fdbf7012ba371cd7eb7f22e7aedc32511b0867e4 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=fdbf7012ba371cd7eb7f22e7aedc32511b0867e4 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 29 Jul 2017 16:05:36 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sat, 29 Jul 2017 16:07:40 +0300 configure: Add --enable-gdb option When one needs to run nasm under GDB Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 8db7c72..8ac4994 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 |