[New-bugs-announce] [issue28470] configure.ac -g debug compiler option when not Py_DEBUG
Chris Byers
report at bugs.python.org
Tue Oct 18 12:55:09 EDT 2016
New submission from Chris Byers:
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?
----------
components: Build
messages: 278910
nosy: Chris Byers
priority: normal
severity: normal
status: open
title: configure.ac -g debug compiler option when not Py_DEBUG
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28470>
_______________________________________
More information about the New-bugs-announce
mailing list