diff -Naur libgda-5.2.2-orig/libgda/Makefile.am libgda-5.2.2/libgda/Makefile.am
--- libgda-5.2.2-orig/libgda/Makefile.am	2013-12-20 00:52:43.000000000 +0400
+++ libgda-5.2.2/libgda/Makefile.am	2014-08-20 19:41:13.641600000 +0400
@@ -307,6 +307,7 @@
 			     --namespace Gda \
 			     --warn-all \
 			     --c-include=libgda/libgda.h
+INTROSPECTION_SCANNER_ENV = CC="$(CC)"
 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 
 psupport = \
diff -Naur libgda-5.2.2-orig/libgda-ui/Makefile.am libgda-5.2.2/libgda-ui/Makefile.am
--- libgda-5.2.2-orig/libgda-ui/Makefile.am	2013-10-19 16:35:28.000000000 +0400
+++ libgda-5.2.2/libgda-ui/Makefile.am	2014-08-20 19:41:40.541400000 +0400
@@ -176,6 +176,7 @@
 if ENABLE_GDAUI_GI
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ENV = CC="$(CC)"
 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) \
                              --add-include-path=$(top_builddir)/libgda \
                              --add-include-path=$(top_builddir)/libgda-ui \
