scons: fix g++ detection logic on OS X

This commit is contained in:
Dane Springmeyer 2013-05-13 09:13:44 -07:00
parent 15ff3dcec4
commit e4f2c4e94d

View file

@ -1601,7 +1601,7 @@ if not preconfigured:
common_cxx_flags = '-ansi -Wall %s %s -ftemplate-depth-300 ' % (env['WARNING_CXXFLAGS'], pthread)
# https://github.com/mapnik/mapnik/issues/1835
if sys.platform == 'darwin' and 'g++' in env['CXX']:
if sys.platform == 'darwin' and env['CXX'] == 'g++':
common_cxx_flags += '-fpermissive '
if env['DEBUG']: