This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Chris Byers
Recipients Chris Byers
Date 2016-10-18.16:55:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476809709.29.0.822288105247.issue28470@psf.upfronthosting.co.za>
In-reply-to
Content
The configure.ac file adds the "-g" debug compiler option to both debug and non-debug builds, so debug information is built for production builds.  This seems likely a bug, unless there was a specific reason to do this.

Around line 1480 of configure.ac:
	    if test "$Py_DEBUG" = 'true' ; then
		# Optimization messes up debuggers, so turn it off for
		# debug builds.
                if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
                    OPT="-g -Og -Wall $STRICT_PROTO"
                else
                    OPT="-g -O0 -Wall $STRICT_PROTO"
                fi
	    else
		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
	    fi
The else case to the first statement (if test "$Py_DEBUG"...) should not contain -g should it?
History
Date User Action Args
2016-10-18 16:55:09Chris Byerssetrecipients: + Chris Byers
2016-10-18 16:55:09Chris Byerssetmessageid: <1476809709.29.0.822288105247.issue28470@psf.upfronthosting.co.za>
2016-10-18 16:55:09Chris Byerslinkissue28470 messages
2016-10-18 16:55:09Chris Byerscreate