1
+ From dffd6c572fb60f955bf3d98a87e5739163ab8f3f Mon Sep 17 00:00:00 2001
2
+ From: Adam Johnson <
[email protected] >
3
+ Date: Thu, 28 May 2020 17:25:21 -0400
4
+ Subject: [PATCH 1/2] static library
5
+
6
+ builds the pythoncore as a static library instead of a DLL
7
+ ---
8
+ PC/pyconfig.h | 6 ++++++
9
+ PCbuild/pythoncore.vcxproj | 16 ++++++++++++++--
10
+ 2 files changed, 20 insertions(+), 2 deletions(-)
11
+
1
12
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
2
- index b6b8d445869bc..35b329f307c12 100644
13
+ index 02216b5068..d359c884e2 100644
3
14
--- a/PC/pyconfig.h
4
15
+++ b/PC/pyconfig.h
5
- @@ -257 ,6 +257 ,7 @@ typedef int pid_t;
16
+ @@ -252 ,6 +252 ,7 @@ typedef int pid_t;
6
17
7
18
/* For Windows the Python core is in a DLL by default. Test
8
19
Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
9
20
+ #define Py_NO_ENABLE_SHARED
10
21
#if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
11
22
# define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
12
23
# define MS_COREDLL /* deprecated old symbol */
13
- @@ -282 ,6 +283 ,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
24
+ @@ -277 ,6 +278 ,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
14
25
# endif /* _DEBUG */
15
26
# endif /* _MSC_VER */
16
27
# endif /* Py_BUILD_CORE */
@@ -23,7 +34,7 @@ index b6b8d445869bc..35b329f307c12 100644
23
34
24
35
#if defined(MS_WIN64)
25
36
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
26
- index 0666b90f66cc9..ca83b82d8a0fe 100644
37
+ index 2625d0293d..dbe236829a 100644
27
38
--- a/PCbuild/pythoncore.vcxproj
28
39
+++ b/PCbuild/pythoncore.vcxproj
29
40
@@ -73,7 +73,7 @@
@@ -44,7 +55,7 @@ index 0666b90f66cc9..ca83b82d8a0fe 100644
44
55
<PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
45
56
</ClCompile>
46
57
<Link>
47
- <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
58
+ <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib; %(AdditionalDependencies)</AdditionalDependencies>
48
59
</Link>
49
60
+ <Lib>
50
61
+ <TargetMachine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">MachineX86</TargetMachine>
@@ -60,4 +71,7 @@ index 0666b90f66cc9..ca83b82d8a0fe 100644
60
71
+ </Lib>
61
72
</ItemDefinitionGroup>
62
73
<ItemGroup>
63
- <ClInclude Include="..\Include\abstract.h" />
74
+ <ClInclude Include="..\Include\Python-ast.h" />
75
+ - -
76
+ 2.28.0.windows.1
77
+
0 commit comments