[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Maintainer mode and debug flags

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: 2007-04-19 22:19:32 CEST

While attempting a build without debugs flags earlier today, I noticed
that the vanilla configure includes '-g -O2' in CFLAGS. This is kind of
pointless, because of the fact that debugging with optimizations is
painful at best, futile at worst. r24655 was a somewhat misguided
effort to fix that problem, and quickly managed to break the
buildslaves. It was reverted in r24666.

So, my proposal is thus:
1) Currently configure complains if '--disable-debug' is given with
   '--enable-maintainer-mode' because the second implies
   '--enable-debug'. After some discussion on IRC, dlr proposed the
   following:
      I think '--enable-maintainer-mode' '--disable-debug' should define
      SVN_DEBUG, but turn off -g.
   I agree, and propose it be implemented as such.

2) Debug symbols, that is including '-g' in CFLAGS, should be off by
   default, and only enabled when requested by '--enable-debug' or
   '--enable-maintainer-mode'. We may have had this debate before, but
   what is the reason for a vanilla './configure' including '-g'?

-Hyrum

Received on Thu Apr 19 22:19:45 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.