mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
autoconf: separate -g3 and -ggdb
The -g3 and -ggdb options are really separate, treat them as such. Trying -ggdb3 -g3 is not only inefficient, it is wrong when the compiler supports only -ggdb. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
ccb73b72b2
commit
3ee140842f
1 changed files with 4 additions and 3 deletions
|
|
@ -5,9 +5,10 @@ dnl Set debug flags and optimization flags depending on if
|
|||
dnl --enable-debug is set or not. Some flags are set regardless...
|
||||
dnl --------------------------------------------------------------------------
|
||||
AC_DEFUN([PA_OPTION_DEBUG],
|
||||
[PA_ARG_DISABLED([gdb], [disable gdb debug extensions],
|
||||
[PA_ADD_LANGFLAGS([-g3])], [PA_ADD_LANGFLAGS([-ggdb3],[-g3])])
|
||||
[PA_ADD_LANGFLAGS([-g3])
|
||||
PA_ARG_DISABLED([gdb], [disable gdb debug extensions],,
|
||||
[PA_ADD_LANGFLAGS([-ggdb])])
|
||||
PA_ARG_ENABLED([debug], [optimize for debugging],
|
||||
[PA_ADD_LANGFLAGS([-Og],[-O0])
|
||||
[PA_ADD_LANGFLAGS([-Og],[-O0])
|
||||
$1],
|
||||
[$2])])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue