MSYS2-packages/python/012-3.8-pep3149-cygwin.patch
2021-01-12 13:24:46 +03:00

29 lines
838 B
Diff

--- Python-3.8.0a3-orig/Python/dynload_shlib.c 2019-03-25 15:36:40.000000000 -0400
+++ Python-3.8.0a3/Python/dynload_shlib.c 2019-03-29 13:18:23.024414000 -0400
@@ -35,6 +35,8 @@
const char *_PyImport_DynLoadFiletab[] = {
#ifdef __CYGWIN__
+ "." SOABI ".dll",
+ ".abi" PYTHON_ABI_STRING ".dll",
".dll",
#else /* !__CYGWIN__ */
"." SOABI ".so",
--- Python-3.8.0a3-orig/configure.ac 2019-03-29 13:16:29.207031200 -0400
+++ Python-3.8.0a3/configure.ac 2019-03-29 13:20:15.713867100 -0400
@@ -837,6 +837,14 @@ cat >> conftest.c <<EOF
darwin
#elif defined(__VXWORKS__)
vxworks
+#elif defined(__CYGWIN__)
+# if defined(__x86_64__)
+ x86_64-cygwin
+# elif defined(__i386__)
+ i386-cygwin
+# else
+# error unknown platform triplet
+# endif
#else
# error unknown platform triplet
#endif