--- gobject-introspection-0cb6bd4db414d8dab7cc90d40faf577fcfd93198/giscanner/ccompiler.py.orig	2014-07-18 09:40:16.636811900 +0000
+++ gobject-introspection-0cb6bd4db414d8dab7cc90d40faf577fcfd93198/giscanner/ccompiler.py	2014-07-18 09:40:04.834813300 +0000
@@ -227,6 +227,10 @@
         for arg in lib_args:
             extra_postargs.append(arg)
 
+        if isinstance(self.compiler, Mingw32CCompiler):
+            if distutils.sysconfig.get_config_vars ().get ("CC", None) is None:
+                distutils.sysconfig.get_config_vars ()["CC"] = self.compiler_cmd
+
         self.compiler.link(target_desc=self.compiler.EXECUTABLE,
                            objects=objects,
                            output_filename=output,
