From 9e72b7b65c2726ea192326261be45f4bcda6a86c Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 26 Jun 2012 19:45:13 +0200 Subject: [PATCH] build: handle CC env var with spaces For example: CC='ccache gcc' ./configure --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 8dd68847dd3..df18ba5e31b 100755 --- a/configure +++ b/configure @@ -241,7 +241,7 @@ def target_arch(): def compiler_version(): try: - proc = subprocess.Popen([CC, '-v'], stderr=subprocess.PIPE) + proc = subprocess.Popen(CC.split() + ['-v'], stderr=subprocess.PIPE) except OSError: return (False, False, None) lines = proc.communicate()[1].split('\n')