1
- From 1e7c3215a8a1c941479da36ae3aa652e3c70337b Mon Sep 17 00:00:00 2001
1
+ From dbd0fcaaddd61affb8c5c30e2916c848d03e8d9c Mon Sep 17 00:00:00 2001
2
2
From: Ray Donnelly <
[email protected] >
3
3
Date: Wed, 16 Aug 2017 12:17:33 +0100
4
- Subject: [PATCH 09/16 ] Support cross-compiling byte-code
4
+ Subject: [PATCH 09/19 ] Support cross-compiling byte-code
5
5
6
6
https://bugs.python.org/issue22724
7
7
---
8
- Makefile.pre.in | 19 ++++++++++---------
8
+ Makefile.pre.in | 20 + ++++++++++---------
9
9
configure | 4 +++-
10
10
configure.ac | 4 +++-
11
- 3 files changed, 16 insertions(+), 11 deletions(-)
11
+ 3 files changed, 17 insertions(+), 11 deletions(-)
12
12
13
13
diff --git a/Makefile.pre.in b/Makefile.pre.in
14
- index d912a19e79..36554b5e24 100644
14
+ index d15d93509d..a008a39b0b 100644
15
15
--- a/Makefile.pre.in
16
16
+++ b/Makefile.pre.in
17
- @@ -231 ,6 +231 ,7 @@ BUILDPYTHON= python$(BUILDEXE)
17
+ @@ -237 ,6 +237 ,7 @@ BUILDPYTHON= python$(BUILDEXE)
18
18
19
19
PYTHON_FOR_REGEN=@PYTHON_FOR_REGEN@
20
20
UPDATE_FILE=@PYTHON_FOR_REGEN@ $(srcdir)/Tools/scripts/update_file.py
21
21
+ PY_BUILD_ENVIRON=@PY_BUILD_ENVIRON@
22
22
PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
23
23
_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
24
24
BUILD_GNU_TYPE= @build@
25
- @@ -539 ,15 +540,15 @@ coverage-report: regen-grammar regen-importlib
25
+ @@ -545 ,15 +546,16 @@ coverage-report: regen-grammar regen-importlib
26
26
27
27
# Run "Argument Clinic" over all source files
28
28
.PHONY=clinic
@@ -33,15 +33,16 @@ index d912a19e79..36554b5e24 100644
33
33
34
34
# Build the interpreter
35
35
$(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
36
- $(LINKCC) $(PY_LDFLAGS ) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
36
+ $(LINKCC) $(PY_CORE_LDFLAGS ) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
37
37
38
38
platform: $(BUILDPYTHON) pybuilddir.txt
39
39
- $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
40
40
+ $(RUNSHARED) $(PY_BUILD_ENVIRON) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
41
+ +
41
42
42
43
# Create build directory and generate the sysconfig build-time data there.
43
44
# pybuilddir.txt contains the name of the build dir and is used for
44
- @@ -558 ,7 +559 ,7 @@ platform: $(BUILDPYTHON) pybuilddir.txt
45
+ @@ -564 ,7 +566 ,7 @@ platform: $(BUILDPYTHON) pybuilddir.txt
45
46
# or removed in case of failure.
46
47
pybuilddir.txt: $(BUILDPYTHON)
47
48
@echo "none" > ./pybuilddir.txt
@@ -50,7 +51,7 @@ index d912a19e79..36554b5e24 100644
50
51
if test $$? -ne 0 ; then \
51
52
echo "generate-posix-vars failed" ; \
52
53
rm -f ./pybuilddir.txt ; \
53
- @@ -589 ,7 +590 ,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
54
+ @@ -595 ,7 +597 ,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
54
55
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build"; \
55
56
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
56
57
_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
@@ -59,7 +60,7 @@ index d912a19e79..36554b5e24 100644
59
60
60
61
61
62
# Build static library
62
- @@ -1091 ,7 +1092,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKI
63
+ @@ -1090 ,7 +1092,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKI
63
64
upgrade) ensurepip="--upgrade" ;; \
64
65
install|*) ensurepip="" ;; \
65
66
esac; \
@@ -68,7 +69,7 @@ index d912a19e79..36554b5e24 100644
68
69
$$ensurepip --root=$(DESTDIR)/ ; \
69
70
fi
70
71
71
- @@ -1101 ,7 +1102,7 @@ altinstall: commoninstall
72
+ @@ -1100 ,7 +1102,7 @@ altinstall: commoninstall
72
73
upgrade) ensurepip="--altinstall --upgrade" ;; \
73
74
install|*) ensurepip="--altinstall" ;; \
74
75
esac; \
@@ -77,7 +78,7 @@ index d912a19e79..36554b5e24 100644
77
78
$$ensurepip --root=$(DESTDIR)/ ; \
78
79
fi
79
80
80
- @@ -1472 ,7 +1473 ,7 @@ libainstall: @DEF_MAKE_RULE@ python-config
81
+ @@ -1470 ,7 +1472 ,7 @@ libainstall: @DEF_MAKE_RULE@ python-config
81
82
# Install the dynamically loadable modules
82
83
# This goes into $(exec_prefix)
83
84
sharedinstall: sharedmods
@@ -86,7 +87,7 @@ index d912a19e79..36554b5e24 100644
86
87
--prefix=$(prefix) \
87
88
--install-scripts=$(BINDIR) \
88
89
--install-platlib=$(DESTSHARED) \
89
- @@ -1556 ,7 +1557 ,7 @@ frameworkinstallextras:
90
+ @@ -1554 ,7 +1556 ,7 @@ frameworkinstallextras:
90
91
# This installs a few of the useful scripts in Tools/scripts
91
92
scriptsinstall:
92
93
SRCDIR=$(srcdir) $(RUNSHARED) \
@@ -96,18 +97,18 @@ index d912a19e79..36554b5e24 100644
96
97
--install-scripts=$(BINDIR) \
97
98
--root=$(DESTDIR)/
98
99
diff --git a/configure b/configure
99
- index 4897ff14ad..44ed296011 100755
100
+ index 5db31f475d..96379d7937 100755
100
101
--- a/configure
101
102
+++ b/configure
102
- @@ -751 ,6 +751 ,7 @@ CONFIG_ARGS
103
+ @@ -752 ,6 +752 ,7 @@ CONFIG_ARGS
103
104
SOVERSION
104
105
VERSION
105
106
PYTHON_FOR_BUILD
106
107
+ PY_BUILD_ENVIRON
107
108
PYTHON_FOR_REGEN
108
109
host_os
109
110
host_vendor
110
- @@ -2926 ,7 +2927 ,8 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
111
+ @@ -2932 ,7 +2933 ,8 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
111
112
fi
112
113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
113
114
$as_echo "$interp" >&6; }
@@ -118,7 +119,7 @@ index 4897ff14ad..44ed296011 100755
118
119
elif test "$cross_compiling" = maybe; then
119
120
as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
120
121
diff --git a/configure.ac b/configure.ac
121
- index 6cbb1eb91a..21de4b26ed 100644
122
+ index b24f7e8df0..6404ad88db 100644
122
123
--- a/configure.ac
123
124
+++ b/configure.ac
124
125
@@ -73,13 +73,15 @@ if test "$cross_compiling" = yes; then
@@ -139,5 +140,5 @@ index 6cbb1eb91a..21de4b26ed 100644
139
140
140
141
dnl Ensure that if prefix is specified, it does not end in a slash. If
141
142
- -
142
- 2.15 .2 (Apple Git-101.1 )
143
+ 2.17 .2 (Apple Git-113 )
143
144
0 commit comments