From 8b2363d2fd8054727c54d83e012476f42953ed0b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 17 Mar 2015 16:36:36 +0100 Subject: [PATCH] configure: use gcc and g++ as CC and CXX defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 16b36f4f18567e..e595da74cec4f1 100755 --- a/configure +++ b/configure @@ -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'))