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 bkabrda
Recipients bkabrda
Date 2013-04-09.13:51:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365515508.55.0.936246153534.issue17679@psf.upfronthosting.co.za>
In-reply-to
Content
When compiling Python 3.3.1, I noticed that some variables like LDFLAGS or CFLAGS in sysconfig have some flags multiple times. (Which BTW breaks distutils.tests.{test_sysconfig_compiler_vars,test_sysconfig_module}) This is caused by interpretation of Makefile in sysconfig._parse_makefile(), which seems to evaluate the variables in Makefile - but some variables in Makefile are formed by expanding env variables multiple times, e.g.:
PY_LDFLAGS=        $(CONFIGURE_LDFLAGS) $(LDFLAGS)
CONFIGURE_LDFLAGS=        @LDFLAGS@
so when doing the build from scratch with configure & make, PY_LDFLAGS gets the content of LDFLAGS twice  (as far as I remember autotools...), CFLAGS gets expanded like 5 times at least.
I think that this is not the correct behaviour, but not sure, maybe I'm doing something wrong.

Thanks.
History
Date User Action Args
2013-04-09 13:51:48bkabrdasetrecipients: + bkabrda
2013-04-09 13:51:48bkabrdasetmessageid: <1365515508.55.0.936246153534.issue17679@psf.upfronthosting.co.za>
2013-04-09 13:51:48bkabrdalinkissue17679 messages
2013-04-09 13:51:48bkabrdacreate