blob: 233cf23941d2d2619f9f09b5fb8413e277c18ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.) */
|