diff -r 49d337cba9db bindings/python/wscript --- a/bindings/python/wscript Sun Mar 01 12:11:00 2009 +0000 +++ b/bindings/python/wscript Sun Mar 01 17:57:03 2009 +0000 @@ -15,7 +15,7 @@ import Utils ## https://launchpad.net/pybindgen/ -REQUIRED_PYBINDGEN_VERSION = (0, 10, 0, 626) +REQUIRED_PYBINDGEN_VERSION = (0, 10, 0, 630) REQUIRED_PYGCCXML_VERSION = (0, 9, 5) @@ -69,6 +69,12 @@ except Configure.ConfigurationError, ex: conf.report_optional_feature("python", "Python Bindings", False, str(ex)) return + + # -fvisibility=hidden optimization + if conf.env['CXX_NAME'] == 'gcc': + conf.env.append_value('CXXFLAGS_PYEXT', '-fvisibility=hidden') + if conf.env['CC_NAME'] == 'gcc': + conf.env.append_value('CCFLAGS_PYEXT', '-fvisibility=hidden') # Check for the location of pybindgen if Options.options.with_pybindgen is not None: