mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Use DWARF debugging with recent gcc.
Oh, wow, I wish I'd known about it before. C macro evaluation in gdb!!! *sob*
This commit is contained in:
parent
33eb3f2418
commit
ef7678fcec
1 changed files with 11 additions and 1 deletions
|
@ -40,7 +40,17 @@ AC_MSG_CHECKING(for debugging)
|
|||
if test "x$debug" != xno -a "x$leave_cflags_alone" != xyes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
BUILD_TYPE="$BUILD_TYPE Debug"
|
||||
CFLAGS="$CFLAGS -g"
|
||||
DEBUG=-g
|
||||
if test "x$GCC" = xyes; then
|
||||
if test "$CC_MAJ" -ge 4; then
|
||||
DEBUG=-g3
|
||||
else
|
||||
if test "$CC_MAJ" -eq 3 -a "$CC_MIN" -ge 1; then
|
||||
DEBUG=-g3
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
CFLAGS="$CFLAGS $DEBUG"
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue