From 707863c1fb13dacb48811b55801cdc83a4726904 Mon Sep 17 00:00:00 2001 From: Sadique Ali Date: Tue, 28 Feb 2012 04:26:34 +0530 Subject: [PATCH] build: make CC command in host check configurable --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index 7a44a82821..71756a6cca 100755 --- a/configure +++ b/configure @@ -147,8 +147,7 @@ def pkg_config(pkg): def host_arch(): """Host architecture. One of arm, ia32 or x64.""" - # TODO better/configurable way of getting the proper 'cc' command? - cc = [ 'cc' ] + cc = [os.environ.get('CC', 'cc')] cmd = cc + [ '-dM', '-E', '-' ] p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)