Commit d177a30b authored by Javier Jardón's avatar Javier Jardón

Enforce the C compiler for json-glib

Otherwise CCache will be detected and will try to create a cache
directory under the wrong prefix.

This is same solution as the one applied in commit
c8ea8532
for json-glib
parent c75f5d26
......@@ -1113,7 +1113,8 @@
{"src": "gnome:caribou",
"config-opts": ["PYTHON=python3"]},
{"src": "gnome:gnome-power-manager"},
{"src": "gnome:gnome-power-manager",
"patches": ["gnome-power-manager-compiler.patch"]},
{"src": "gnome:gnome-shell",
"irc_room": "gnome-shell",
......
From a11204cc92142ac5db2c16d089e61457c6a08d12 Mon Sep 17 00:00:00 2001
From: Emmanuele Bassi <ebassi@gnome.org>
Date: Sat, 18 Mar 2017 17:28:49 +0000
Subject: [PATCH] Enforce gcc as the compiler
Otherwise Continuous will attempt to use ccache with a read-only file
system:
ccache: error: Failed to create directory //.ccache/tmp: Read-only file system
---
configure | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index b2a07543..cdc436d4 100755
--- a/configure
+++ b/configure
@@ -103,7 +103,7 @@ cat > Makefile <<END
# Generated by configure; do not edit
all:
- CC="\$(CC)" CXX="\$(CXX)" ${NINJA}
+ CC="gcc" ${NINJA}
install:
DESTDIR="\$(DESTDIR)" ${NINJA} install
@@ -125,6 +125,7 @@ echo " includedir:.. ${includedir}"
echo " additional:.."
echo " - ${enable_docs} ${enable_man} ${enable_introspection}"
+export CC=gcc
exec ${MESON} \
--prefix=${prefix} \
--libdir=${libdir} \
--
2.12.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment