configure: use gcc and g++ as CC and CXX defaults

It matches what GYP's Makefile generator does and it should improve
compiler detection because cc and c++ are not always gcc and g++.

Fixes: https://github.com/iojs/io.js/issues/1173
PR-URL: https://github.com/iojs/io.js/pull/1174
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
pull/1174/head
Ben Noordhuis 2015-03-17 16:36:36 +01:00
parent 08ec897f82
commit 8b2363d2fd
1 changed files with 3 additions and 2 deletions

5
configure vendored
View File

@ -9,8 +9,9 @@ import sys
import shutil
import string
CC = os.environ.get('CC', 'cc')
CXX = os.environ.get('CXX', 'c++')
# gcc and g++ as defaults matches what GYP's Makefile generator does.
CC = os.environ.get('CC', 'gcc')
CXX = os.environ.get('CXX', 'g++')
root_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(root_dir, 'tools', 'gyp', 'pylib'))