build: make CC command in host check configurable

pull/24503/head
Sadique Ali 2012-02-28 04:26:34 +05:30 committed by Ben Noordhuis
parent c97b4f1971
commit 707863c1fb
1 changed files with 1 additions and 2 deletions

3
configure vendored
View File

@ -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)