common.mk: escape $CC in quotes
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 11 Dec 2012 23:15:22 +0000 (09:15 +1000)
committerColin Walters <walters@verbum.org>
Wed, 12 Dec 2012 13:06:45 +0000 (08:06 -0500)
If CC is defined at "ccache gcc", the expanded command ends up as:
  env PATH=... CC=ccache gcc PYTHONPATH=... ./g-ir-scanner
causing compilation errors.

https://bugzilla.gnome.org/show_bug.cgi?id=690074

common.mk

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