summaryrefslogtreecommitdiff
path: root/Python-2.7.5/Lib/distutils/unixccompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python-2.7.5/Lib/distutils/unixccompiler.py')
-rw-r--r--Python-2.7.5/Lib/distutils/unixccompiler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python-2.7.5/Lib/distutils/unixccompiler.py b/Python-2.7.5/Lib/distutils/unixccompiler.py
index d30ab4f..23f0941 100644
--- a/Python-2.7.5/Lib/distutils/unixccompiler.py
+++ b/Python-2.7.5/Lib/distutils/unixccompiler.py
@@ -172,6 +172,10 @@ class UnixCCompiler(CCompiler):
ld_args[:0] = extra_preargs
if extra_postargs:
ld_args.extend(extra_postargs)
+
+ # HACK: Avoid dependency on libgcc dll on mingw.
+ ld_args.extend(["-static-libgcc"])
+
self.mkpath(os.path.dirname(output_filename))
try:
if target_desc == CCompiler.EXECUTABLE: