Browse Source

build: make CC command in host check configurable

v0.9.1-release
Sadique Ali 13 years ago
committed by Ben Noordhuis
parent
commit
707863c1fb
  1. 3
      configure

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

Loading…
Cancel
Save