lbry-fdroid/p4a/pythonforandroid/recipes/python2legacy/patches/fix-distutils-darwin.patch
Akinwale Ariwodola 8b2694efb7
New build (#508)
* fix build for openssl 1.1.1b required for sdk
(cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977)

* use js code from master

* fix openssl recipe and tweak build
(cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e)

* remove unused build recipes
(cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
2019-03-30 21:58:45 +01:00

24 lines
1.2 KiB
Diff

--- Python-2.7.2.orig/Lib/distutils/command/build_ext.py 2011-06-11 17:46:24.000000000 +0200
+++ Python-2.7.2/Lib/distutils/command/build_ext.py 2012-08-01 18:32:13.000000000 +0200
@@ -236,7 +236,7 @@
# Python's library directory must be appended to library_dirs
sysconfig.get_config_var('Py_ENABLE_SHARED')
if ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')
- or sys.platform.startswith('sunos'))
+ or sys.platform.startswith('sunos') or sys.platform.startswith('darwin'))
and sysconfig.get_config_var('Py_ENABLE_SHARED')):
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
# building third party extensions
@@ -750,9 +750,9 @@
# extensions, it is a reference to the original list
return ext.libraries + [pythonlib, "m"] + extra
- elif sys.platform == 'darwin':
- # Don't use the default code below
- return ext.libraries
+ #elif sys.platform == 'darwin':
+ # # Don't use the default code below
+ # return ext.libraries
elif sys.platform[:3] == 'aix':
# Don't use the default code below
return ext.libraries