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 drkirkby
Recipients drkirkby
Date 2011-03-24.23:49:27
SpamBayes Score 4.2188475e-14
Marked as misclassified No
Message-id <1301010568.13.0.852668909245.issue11667@psf.upfronthosting.co.za>
In-reply-to
Content
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"
$export CXXFLAGS="-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?
History
Date User Action Args
2011-03-24 23:49:28drkirkbysetrecipients: + drkirkby
2011-03-24 23:49:28drkirkbysetmessageid: <1301010568.13.0.852668909245.issue11667@psf.upfronthosting.co.za>
2011-03-24 23:49:27drkirkbylinkissue11667 messages
2011-03-24 23:49:27drkirkbycreate