aboutsummaryrefslogtreecommitdiff
path: root/ports/python3/0003-Fix-header-for-static-linkage.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-22 17:46:39 -0700
committerGitHub <noreply@github.com>2017-05-22 17:46:39 -0700
commit082c827fd38eabf3a8f60407cbc19df715432143 (patch)
tree7b07727b0c6a1acc10b0bb16dc74e2f64e146c90 /ports/python3/0003-Fix-header-for-static-linkage.patch
parent621d2f852d43b5766bbf13bd22591524a083e48e (diff)
parent683d8a8820680fc017d0faef08bac490f68e781e (diff)
downloadvcpkg-082c827fd38eabf3a8f60407cbc19df715432143.tar.gz
vcpkg-082c827fd38eabf3a8f60407cbc19df715432143.zip
Merge pull request #1123 from muemart/python
Add port for Python 3
Diffstat (limited to 'ports/python3/0003-Fix-header-for-static-linkage.patch')
-rw-r--r--ports/python3/0003-Fix-header-for-static-linkage.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/python3/0003-Fix-header-for-static-linkage.patch b/ports/python3/0003-Fix-header-for-static-linkage.patch
new file mode 100644
index 000000000..99e56d29c
--- /dev/null
+++ b/ports/python3/0003-Fix-header-for-static-linkage.patch
@@ -0,0 +1,14 @@
+diff --git a/PC/pyconfig.h b/PC/pyconfig.h
+index 64e7aec..aa36745 100644
+--- a/PC/pyconfig.h
++++ b/PC/pyconfig.h
+@@ -274,6 +274,7 @@ typedef int pid_t;
+
+ /* For Windows the Python core is in a DLL by default. Test
+ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
++#define Py_NO_ENABLE_SHARED
+ #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
+ # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
+ # define MS_COREDLL /* deprecated old symbol */
+--
+