summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-10-26 14:55:54 -0400
committerColin Walters <walters@verbum.org>2012-10-26 14:59:24 -0400
commit7b639e21fc285fdf46bd5f890f7911619d71d232 (patch)
tree71f120127847be39eefff12c539704811b82983b /common.mk
parentf9e760cdef4eaf06495da048513f825aaf95a10d (diff)
downloadgobject-introspection-7b639e21fc285fdf46bd5f890f7911619d71d232.tar.gz
common: Ensure we use $(CC) from environment when compiling scanned binaries
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
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 052d5b4b..f67b2e83 100644
--- 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) \