|
1 |
| -diff --git a/pyconfig.h.orig b/pyconfig.h |
2 |
| ---- a/pyconfig.h |
3 |
| -+++ b/pyconfig.h |
4 |
| -@@ -269,7 +269,7 @@ |
5 |
| - |
6 |
| - /* Define if we can use gcc inline assembler to get and set x87 control word |
7 |
| - */ |
8 |
| --#define HAVE_GCC_ASM_FOR_X87 1 |
9 |
| -+#undef HAVE_GCC_ASM_FOR_X87 |
10 |
| - |
11 |
| - /* Define if you have the getaddrinfo function. */ |
12 |
| - #define HAVE_GETADDRINFO 1 |
13 |
| -diff --git a/setup.py b/setup.py |
14 |
| ---- a/setup.py |
15 |
| -+++ b/setup.py |
16 |
| -@@ -18,6 +18,7 @@ from distutils.command.install_lib import install_lib |
17 |
| - from distutils.spawn import find_executable |
18 |
| - |
19 |
| - cross_compiling = "_PYTHON_HOST_PLATFORM" in os.environ |
20 |
| -+cross_compiling = True |
21 |
| - |
22 |
| - def get_platform(): |
23 |
| - # cross build |
24 |
| -@@ -442,7 +443,9 @@ class PyBuildExt(build_ext): |
25 |
| - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
26 |
| - if cross_compiling: |
27 |
| - self.add_gcc_paths() |
28 |
| -- self.add_multiarch_paths() |
29 |
| -+ #self.add_multiarch_paths() |
30 |
| -+ add_dir_to_list(self.compiler.library_dirs, './Modules/zlib') |
31 |
| -+ add_dir_to_list(self.compiler.include_dirs, './Modules/zlib') |
32 |
| - |
33 |
| - # Add paths specified in the environment variables LDFLAGS and |
34 |
| - # CPPFLAGS for header and library files. |
35 |
| -diff --git a/Modules/Setup b/Modules/Setup |
36 |
| ---- a/Modules/Setup |
37 |
| -+++ b/Modules/Setup |
38 |
| -@@ -171,14 +171,14 @@ GLHACK=-Dclear=__GLclear |
39 |
| - #array arraymodule.c # array objects |
40 |
| - #cmath cmathmodule.c _math.c # -lm # complex math library functions |
41 |
| - #math mathmodule.c _math.c # -lm # math library functions, e.g. sin() |
42 |
| --#_struct _struct.c # binary structure packing/unpacking |
43 |
| -+_struct _struct.c # binary structure packing/unpacking |
44 |
| - #time timemodule.c # -lm # time operations and variables |
45 |
| --#operator operator.c # operator.add() and similar goodies |
46 |
| -+operator operator.c # operator.add() and similar goodies |
47 |
| - #_testcapi _testcapimodule.c # Python C API test module |
48 |
| - #_random _randommodule.c # Random number generator |
49 |
| --#_collections _collectionsmodule.c # Container types |
50 |
| --#_heapq _heapqmodule.c # Heapq type |
51 |
| --#itertools itertoolsmodule.c # Functions creating iterators for efficient looping |
52 |
| -+_collections _collectionsmodule.c # Container types |
53 |
| -+_heapq _heapqmodule.c # Heapq type |
54 |
| -+itertools itertoolsmodule.c # Functions creating iterators for efficient looping |
55 |
| - #strop stropmodule.c # String manipulations |
56 |
| - #_functools _functoolsmodule.c # Tools for working with functions and callable objects |
57 |
| - #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator |
58 |
| -@@ -434,7 +434,7 @@ itertools itertoolsmodule.c # Functions creating iterators for efficient looping |
59 |
| - |
60 |
| - |
61 |
| - # Helper module for various ascii-encoders |
62 |
| --#binascii binascii.c |
63 |
| -+binascii binascii.c |
64 |
| - |
65 |
| - # Fred Drake's interface to the Python parser |
66 |
| - #parser parsermodule.c |
67 |
| -@@ -465,6 +465,7 @@ GLHACK=-Dclear=__GLclear |
| 1 | +--- pyconfig.h.orig 2020-10-24 22:13:50.745086908 +0100 |
| 2 | ++++ pyconfig.h 2020-10-24 23:04:46.647877114 +0100 |
| 3 | +@@ -979,7 +979,7 @@ |
| 4 | + #define HAVE_SYS_FILE_H 1 |
| 5 | + |
| 6 | + /* Define to 1 if you have the <sys/ioctl.h> header file. */ |
| 7 | +-#define HAVE_SYS_IOCTL_H 1 |
| 8 | ++//#define HAVE_SYS_IOCTL_H 1 |
| 9 | + |
| 10 | + /* Define to 1 if you have the <sys/kern_control.h> header file. */ |
| 11 | + /* #undef HAVE_SYS_KERN_CONTROL_H */ |
| 12 | +--- Modules/Setup.orig 2020-10-24 23:04:17.224003619 +0100 |
| 13 | ++++ Modules/Setup 2020-10-24 23:04:24.079974258 +0100 |
| 14 | +@@ -358,7 +358,7 @@ |
| 15 | + # Andrew Kuchling's zlib module. |
68 | 16 | # This require zlib 1.1.3 (or later).
|
69 | 17 | # See http://www.gzip.org/zlib/
|
70 |
| - #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz |
71 |
| -+zlib zlibmodule.c -I./Modules/zlib -L./Modules/zlib -lz |
| 18 | +-#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz |
| 19 | ++zlib zlibmodule.c -IModules/zlib -LModules/zlib -lz |
72 | 20 |
|
73 | 21 | # Interface to the Expat XML parser
|
74 | 22 | #
|
| 23 | +--- setup.py |
| 24 | ++++ setup.py |
| 25 | +@@ -16,7 +16,7 @@ from distutils.command.install_lib import install_lib |
| 26 | + from distutils.command.build_scripts import build_scripts |
| 27 | + from distutils.spawn import find_executable |
| 28 | + |
| 29 | +-cross_compiling = "_PYTHON_HOST_PLATFORM" in os.environ |
| 30 | ++cross_compiling = True |
| 31 | + |
| 32 | + # Add special CFLAGS reserved for building the interpreter and the stdlib |
| 33 | + # modules (Issue #21121). |
0 commit comments