Handle config args for libffi, for cross compilation.
Signed-off-by: Robert Schwebel
---
Makefile.pre.in |2 ++
setup.py|4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
Index: Python-3.0/setup.py
When cross compiling we need a PYTHON_FOR_BUILD, PGEN_FOR_BUILD etc. The
names follow usual autotool nomenclatures.
Patch is originally from here:
http://bugs.gentoo.org/attachment.cgi?id=130627
and was ported to Python 3.0rc2
Signed-off-by: Robert Schwebel
---
Makefile.pre.in | 116
Add a CROSS_COMPILING=yes variable in order to tell setup.py that we are
cross compiling.
Signed-off-by: Robert Schwebel
---
setup.py | 46 --
1 file changed, 36 insertions(+), 10 deletions(-)
Index: Python-3.0/setup.py
When cross compiling, AC_TRY_RUN should not be used. This patch fixes it
in a way that for a cross scenario the test can be overwritten on the
command line.
Signed-off-by: Robert Schwebel
---
configure.in | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
Index
If cross compiling it must be possible to overwrite the so_ext from the
outside.
Signed-off-by: Robert Schwebel
---
Lib/distutils/command/build_ext.py |2 ++
1 file changed, 2 insertions(+)
Index: Python-3.0/Lib/distutils/command/build_ext.py
When cross compiling, AC_TRY_RUN should not be used. This patch fixes it
in a way that for a cross scenario the test can be overwritten on the
command line.
Signed-off-by: Robert Schwebel
---
configure.in | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
Index
Add the necessary bits for feeding PYTHON_FOR_BUILD into the python
build process.
Patch is originally from here, adapted to python 3.0rc2:
http://bugs.gentoo.org/attachment.cgi?id=130627
Signed-off-by: Robert Schwebel
---
configure.in | 90
This patch is originally from here:
http://bugs.gentoo.org/attachment.cgi?id=130627
Add documentation for cross compilation scenario.
Signed-off-by: Robert Schwebel
---
README | 44
1 file changed, 44 insertions(+)
Index: Python-3.0/README
Python guys out there. Do you see issues with these patches?
Would it be possible in general to get something similar to this series
into the Python mainline?
Robert
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Industrial Linux Solutions | http
Hi Antoine,
[sorry for the double post, the mails didn't show up in the archive and
my procmail had missing slash at the end of the rule...]
> Thanks for those patches, but please post them to the issue tracker instead
> (http://bugs.python.org/). If each patch is for a distinct purpose, then ope
10 matches
Mail list logo