FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/3.8/patches/python3-cross_compile.patch at trunk · python-emscripten/python · GitHub
python-emscripten
python
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
3.8
/
patches
/
python3-cross_compile.patch
Copy path
More file actions
More file actions
Latest commit
History
History
History
68 lines (66 loc) · 2.28 KB
Breadcrumbs
python
/
3.8
/
patches
/
python3-cross_compile.patch
Copy path
File metadata and controls
68 lines (66 loc) · 2.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Description: Fix build system for Emscripten cross-compilation.
Forwarded: no
Author: Sylvain Beucler <beuc@beuc.net>
Last-Update: 2020-05-08
Index: Python-3.8.3/config.sub
===================================================================
--- Python-3.8.3.orig/config.sub
+++ Python-3.8.3/config.sub
@@ -1394,7 +1394,7 @@
case $os in
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
-
| -midnightbsd*)
+
| -midnightbsd* | -emscripten*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
Index: Python-3.8.3/configure
===================================================================
--- Python-3.8.3.orig/configure
+++ Python-3.8.3/configure
@@ -3278,6 +3278,9 @@
then
*-*-vxworks*)
ac_sys_system=VxWorks
;;
+
*-*-emscripten)
+
ac_sys_system=Emscripten
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
@@ -3328,6 +3331,9 @@
if test "$cross_compiling" = yes; then
*-*-vxworks*)
_host_cpu=$host_cpu
;;
+
*-*-emscripten)
+
ac_sys_system=Emscripten
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
Index: Python-3.8.3/config-emscripten.site
===================================================================
--- /dev/null
+++ Python-3.8.3/config-emscripten.site
@@ -0,0 +1,5 @@
+
# Required by ./configure
+
ac_cv_file__dev_ptmx=no
+
ac_cv_file__dev_ptc=no
+
# Support dynamic linking
+
ac_cv_func_dlopen=yes
--- Python-3.8.3/setup.py 2020-05-13 19:31:54.000000000 +0200
+++ build/Python-3.8.3/setup.py 2020-05-22 10:43:49.189946959 +0200
@@ -651,10 +651,10 @@
if not CROSS_COMPILING:
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
+
self.add_multiarch_paths()
# only change this for cross builds for 3.3, issues on Mageia
-
if CROSS_COMPILING:
-
self.add_cross_compiling_paths()
-
self.add_multiarch_paths()
+
#if CROSS_COMPILING:
+
# self.add_cross_compiling_paths()
self.add_ldflags_cppflags()
def init_inc_lib_dirs(self):
Back
|
FazBrowse Home
|
New Git URL