aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch')
-rw-r--r--vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch b/vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch
new file mode 100644
index 0000000..233cf23
--- /dev/null
+++ b/vcpkg/ports/python3/0020-Py_NO_LINK_LIB.patch
@@ -0,0 +1,13 @@
+diff --git a/PC/pyconfig.h b/PC/pyconfig.h
+index f4f57c5d270028..9e70303868e5de 100644
+--- a/PC/pyconfig.h
++++ b/PC/pyconfig.h
+@@ -302,7 +302,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
+ #ifdef MS_COREDLL
+ # if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
+ /* not building the core - must be an ext */
+-# if defined(_MSC_VER)
++# if defined(_MSC_VER) && !defined(Py_NO_LINK_LIB)
+ /* So MSVC users need not specify the .lib
+ file in their Makefile (other compilers are
+ generally taken care of by distutils.) */