Author martin.panter
Recipients Alex.Willmer, martin.panter, thomas.perl
Date 2016-07-13.03:13:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468379637.77.0.281727750601.issue27490@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t know the details of how Python uses CFLAGS etc, but according to <https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#index-CFLAGS> and <https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html#index-ld>, the general convention may be that CFLAGS and LDFLAGS are only for _compiler_ and _linker_ flags respectively, and CFLAGS may not be used for a link step.

Why don’t you either use CC="arm-none-eabi-gcc -mfloat-abi=hard", or LDFLAGS="-mfloat-abi=hard"? If these options work for you, perhaps what we really need is better documentation of how to build Python.

Ideally I would also like to make it so that compiling pgen is not necessary. But I think we can only use Gnu Make extensions if they are harmless in other operating systems (e.g. we have to keep the makefile compatible with BSD Make, though maybe it is okay to require Gnu Make for cross compiling).

In <https://bugs.python.org/issue26662#msg270162> I left some rambling thoughts on ways to make the file regeneration like pgen does less automatic and more up to the user to control.
History
Date User Action Args
2016-07-13 03:13:57martin.pantersetrecipients: + martin.panter, Alex.Willmer, thomas.perl
2016-07-13 03:13:57martin.pantersetmessageid: <1468379637.77.0.281727750601.issue27490@psf.upfronthosting.co.za>
2016-07-13 03:13:57martin.panterlinkissue27490 messages
2016-07-13 03:13:57martin.pantercreate