From: Sadique Ali Date: Mon, 27 Feb 2012 22:56:34 +0000 (+0530) Subject: build: make CC command in host check configurable X-Git-Tag: v0.7.6~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=707863c1fb13dacb48811b55801cdc83a4726904;p=platform%2Fupstream%2Fnodejs.git build: make CC command in host check configurable --- diff --git a/configure b/configure index 7a44a82..71756a6 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)