FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/2.7.18/patches/python2-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
/
2.7.18
/
patches
/
python2-cross_compile.patch
Copy path
More file actions
More file actions
Latest commit
History
History
History
109 lines (104 loc) · 2.99 KB
Breadcrumbs
python
/
2.7.18
/
patches
/
python2-cross_compile.patch
Copy path
File metadata and controls
109 lines (104 loc) · 2.99 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Description: Fix build system for Emscripten cross-compilation.
Also adds ac_cv_func_dlopen=yes to support dynamic linking.
Forwarded: no
Author: Marat Dukhan <maratek@gmail.com>, Sylvain Beucler <beuc@beuc.net>
Origin: https://github.com/PeachPy/Python-2.7
Last-Update: 2020-07-27
commit 5b7a8e46d129e576ad9298055bb4e695aea29cb6
Author: Marat Dukhan <maratek@gmail.com>
Date: Mon Oct 5 16:58:19 2015 -0400
Make config.sub recognize asmjs-unknown-emscripten target
Index: Python-2.7.18/config.sub
===================================================================
--- Python-2.7.18.orig/config.sub
+++ Python-2.7.18/config.sub
@@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2017 Free Software Foundation, Inc.
-
timestamp='2017-04-02'
+
timestamp='2020-07-27'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -118,7 +118,8 @@
case $maybe_os in
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
kopensolaris*-gnu* | cloudabi*-eabi* | \
-
storm-chaos* | os2-emx* | rtmk-nova*)
+
storm-chaos* | os2-emx* | rtmk-nova* | \
+
emscripten)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
@@ -253,6 +254,7 @@
case $basic_machine in
| am33_2.0 \
| arc | arceb \
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+
| asmjs \
| avr | avr32 \
| ba \
| be32 | be64 \
@@ -1547,6 +1549,8 @@
case $os in
-dicos*)
os=-dicos
;;
+
-emscripten)
+
;;
-nacl*)
;;
-ios)
Index: Python-2.7.18/configure
===================================================================
--- Python-2.7.18.orig/configure
+++ Python-2.7.18/configure
@@ -3287,6 +3287,9 @@
then
*-*-cygwin*)
ac_sys_system=Cygwin
;;
+
asmjs-*-*)
+
ac_sys_system=Emscripten
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
@@ -3333,6 +3336,9 @@
if test "$cross_compiling" = yes; then
*-*-cygwin*)
_host_cpu=
;;
+
asmjs-*-*)
+
_host_cpu=
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
Index: Python-2.7.18/configure.ac
===================================================================
--- Python-2.7.18.orig/configure.ac
+++ Python-2.7.18/configure.ac
@@ -340,6 +340,9 @@
then
*-*-cygwin*)
ac_sys_system=Cygwin
;;
+
asmjs-*-*)
+
ac_sys_system=Emscripten
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
@@ -386,6 +389,9 @@
if test "$cross_compiling" = yes; then
*-*-cygwin*)
_host_cpu=
;;
+
asmjs-*-*)
+
_host_cpu=
+
;;
*)
# for now, limit cross builds to known configurations
MACHDEP="unknown"
Index: Python-2.7.18/config.site
===================================================================
--- /dev/null
+++ Python-2.7.18/config.site
@@ -0,0 +1,3 @@
+
ac_cv_file__dev_ptmx=no
+
ac_cv_file__dev_ptc=no
+
ac_cv_func_dlopen=yes
Back
|
FazBrowse Home
|
New Git URL