common: Ensure we use $(CC) from environment when compiling scanned binaries
authorColin Walters <walters@verbum.org>
Fri, 26 Oct 2012 18:55:54 +0000 (14:55 -0400)
committerColin Walters <walters@verbum.org>
Fri, 26 Oct 2012 18:59:24 +0000 (14:59 -0400)
GNU make will default to "gcc" if "cc" isn't found; we need to
replicate that behavior here.

Patch-suggested-by: ojab <ojab@ojab.ru>
https://bugzilla.gnome.org/show_bug.cgi?id=678678

common.mk

index 052d5b4..f67b2e8 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -9,6 +9,7 @@
 INTROSPECTION_SCANNER = \
     env PATH=.libs:$(PATH) \
         LPATH=.libs \
+        CC=$(CC) \
         PYTHONPATH=$(top_builddir):$(top_srcdir) \
         UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \
         UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) \