diff --git a/PCbuild9/_ssl.vcproj b/PCbuild9/_ssl.vcproj
index 14cb70cca5d..0fcad8dfdb0 100644
--- a/PCbuild9/_ssl.vcproj
+++ b/PCbuild9/_ssl.vcproj
@@ -27,6 +27,7 @@
>
diff --git a/PCbuild9/pyd_d.vsprops b/PCbuild9/pyd_d.vsprops
index c29d563d722..8fc10b98588 100644
--- a/PCbuild9/pyd_d.vsprops
+++ b/PCbuild9/pyd_d.vsprops
@@ -17,10 +17,10 @@
OutputFile="$(OutDir)\$(ProjectName)_d.pyd"
LinkIncremental="1"
ProgramDatabaseFile="$(OutDir)\$(ProjectName)_d.pdb"
- ImportLibrary="$(IntDir)\$(TargetName).lib"
+ ImportLibrary="$(OutDir)\$(TargetName).lib"
/>
diff --git a/PCbuild9/python.vcproj b/PCbuild9/python.vcproj
index fa3c0e165f0..e470bedbed5 100644
--- a/PCbuild9/python.vcproj
+++ b/PCbuild9/python.vcproj
@@ -69,6 +69,9 @@
OutputFile="$(OutDir)\python.exe"
SubSystem="1"
StackReserveSize="2000000"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ LinkTimeCodeGeneration="1"
BaseAddress="0x1d000000"
/>
@@ -144,6 +147,9 @@
OutputFile="$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames="libc"
ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ LinkTimeCodeGeneration="1"
BaseAddress="0x1e000000"
ImportLibrary="$(OutDir)$(PyDllName).lib"
/>
diff --git a/PCbuild9/pythonw.vcproj b/PCbuild9/pythonw.vcproj
index c4ec4420c3e..6b08fa9679b 100644
--- a/PCbuild9/pythonw.vcproj
+++ b/PCbuild9/pythonw.vcproj
@@ -211,6 +211,9 @@
OutputFile="$(OutDir)\pythonw.exe"
SubSystem="2"
StackReserveSize="2000000"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ LinkTimeCodeGeneration="1"
BaseAddress="0x1d000000"
TargetMachine="1"
/>
@@ -287,6 +290,9 @@
OutputFile="$(OutDir)\pythonw.exe"
SubSystem="2"
StackReserveSize="2000000"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ LinkTimeCodeGeneration="1"
BaseAddress="0x1d000000"
/>