From: nasm-bot f. C. G. <gor...@gm...> - 2017-08-16 22:03:24
|
Commit-ID: d7a547336865b688e50278f24cc598c358d5d577 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=d7a547336865b688e50278f24cc598c358d5d577 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 29 Jul 2017 16:05:36 +0300 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Wed, 16 Aug 2017 14:59:25 -0700 configure: Add --enable-gdb option When one needs to run nasm under GDB Signed-off-by: Cyrill Gorcunov <gor...@gm...> Signed-off-by: H. Peter Anvin <hp...@zy...> --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index bc8a1a2..37f51af 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 |