[New-bugs-announce] [issue11667] 'configure' script overrides users setting of CFLAGS
report at bugs.python.org
Fri Mar 25 00:49:28 CET 2011
New submission from David Kirkby <david.kirkby at onetel.net>:
I'm trying to build a version of Python *without* debugging information.
The reason for me wanting to do this is because there is a bug which is either in gcc or AIX , that prevents recently patched versions of AIX building code where there are static variables that are unitilized.
So I have tried
$ export CFLAGS="-g0"
The "-g0" should disable debugging information. But instead the option occurs before the automatically inserted options, so I see:
gcc -c -fno-strict-aliasing -g0 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Parser/pgen.o Parser/pgen.c
Because of this, the "-g" overrides the "-g0" and I get debugging information.
Is there any way to not add -g when building Python?
title: 'configure' script overrides users setting of CFLAGS
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce