See comments below On Mon Apr 29 2013 05:56:08 PM CEST, Joerg Wunsch <j...@uriah.heep.sax.de> wrote:
=================================================================== > --- trunk/avr-libc/configure.ac 2013-04-29 12:21:04 UTC (rev 2371) > +++ trunk/avr-libc/configure.ac 2013-04-29 15:56:07 UTC (rev 2372) > @@ -326,6 +326,31 @@ > AC_SUBST(AVR_LIBC_USER_MANUAL) > AC_SUBST(DOC_INST_DIR) > > +dnl Let the user decide which debug information to generate. > +dnl Default is nothing, suitable for binary distributions of the > +dnl compiled library. Alternative options include stabs, dwarf-2, > +dnl or dwarf-4. > +AC_ARG_ENABLE(debug-info, > +[ --enable-debug-info=stabs|dwarf-2|dwarf-4 Enable generation of > debugging information], +[case "${enableval}" in > + yes|dwarf2|dwarf-2) debuginfo=dwarf2 ;; > + no) debuginfo="" ;; > + stabs) debuginfo=stabs ;; > + dwarf4|dwarf-4) debuginfo=dwarf4 ;; > + *) AC_MSG_ERROR([bad value ${enableval} > for > --enable-debug-info option; should be either stabs, dwarf-2, or > dwarf-4]) ;; + esac], [debuginfo=""]) + > +dnl Decide which debuginfo information to include > +case "$debuginfo" in > +"") CDEBUG=""; ASDEBUG="" ;; > +stabs) CDEBUG="-gstabs"; ASDEBUG="-Wa,-gstabs" ;; > +dwarf2) CDEBUG="-gdwarf-2"; ASDEBUG="-Wa,-gdwarf-2" ;; > +dwarf4) CDEBUG="-gdwarf-4"; ASDEBUG="-Wa,-gdwarf-2" ;; is the ASDEBUG gdwarf-2 correct for dwarf 4? Hth, wouter _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev