diff -r 738de9a9a3ea Lib/distutils/_msvccompiler.py --- a/Lib/distutils/_msvccompiler.py Thu Aug 20 11:13:09 2015 +1200 +++ b/Lib/distutils/_msvccompiler.py Fri Aug 21 12:39:58 2015 -0500 @@ -468,7 +468,7 @@ # ccompiler.py. def library_dir_option(self, dir): - return "/LIBPATH:" + dir + return "/LIBPATH:" + dir.rstrip('\\') def runtime_library_dir_option(self, dir): raise DistutilsPlatformError( diff -r 738de9a9a3ea Lib/distutils/msvc9compiler.py --- a/Lib/distutils/msvc9compiler.py Thu Aug 20 11:13:09 2015 +1200 +++ b/Lib/distutils/msvc9compiler.py Fri Aug 21 12:39:58 2015 -0500 @@ -740,7 +740,7 @@ # ccompiler.py. def library_dir_option(self, dir): - return "/LIBPATH:" + dir + return "/LIBPATH:" + dir.rstrip('\\') def runtime_library_dir_option(self, dir): raise DistutilsPlatformError( diff -r 738de9a9a3ea Lib/distutils/msvccompiler.py --- a/Lib/distutils/msvccompiler.py Thu Aug 20 11:13:09 2015 +1200 +++ b/Lib/distutils/msvccompiler.py Fri Aug 21 12:39:58 2015 -0500 @@ -534,7 +534,7 @@ # ccompiler.py. def library_dir_option(self, dir): - return "/LIBPATH:" + dir + return "/LIBPATH:" + dir.rstrip('\\') def runtime_library_dir_option(self, dir): raise DistutilsPlatformError(