Check if the compiler *really* supports -fvisibility=hidden.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-03-04 11:34:51 +00:00
parent 50f61a8bf7
commit a4c4aec51c

View File

@@ -71,9 +71,8 @@ def configure(conf):
return
# -fvisibility=hidden optimization
if conf.env['CXX_NAME'] == 'gcc' and conf.env['CC_VERSION'] >= (4,0,0):
if conf.env['CXX_NAME'] == 'gcc' and conf.check_compilation_flag('-fvisibility=hidden'):
conf.env.append_value('CXXFLAGS_PYEXT', '-fvisibility=hidden')
if conf.env['CC_NAME'] == 'gcc' and conf.env['CC_VERSION'] >= (4,0,0):
conf.env.append_value('CCFLAGS_PYEXT', '-fvisibility=hidden')
# Check for the location of pybindgen