In the meantime, I suppose I could enable the -gdwarf-2 compiler option.

yes (but it's a bit more tricky than it sounds)
something like this will do

A+

diff --git a/configure.ac b/configure.ac
index 4bd43d1..2624dc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,6 +236,12 @@ then
     AC_SUBST(TARGETFLAGS,"-b $host_alias $TARGETFLAGS")
 fi
 
+dnl Check the debug format (force pure dwarf-2 debug format until we correctly support other versions)
+tmp_cflags=$CFLAGS
+CFLAGS=`echo $CFLAGS | sed -e 's/-g\\>/-gdwarf-2 -gstrict-dwarf/'`
+AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { return 0; }]])],
+               [], [CFLAGS=$tmp_cflags])
+
 dnl Check for flex
 AC_CHECK_PROGS(FLEX,flex,none)
 if test "$FLEX" = "none"