diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-12 11:34:37 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-12 15:40:47 -0500 |
commit | 5062a00c7d2580d1245f7ad14760a91939c34bdc (patch) | |
tree | 83686b846f3e5eb788b8f6a7c69974b69aa0be98 /wscript | |
parent | 2c21cbb0444e69e80a1293d7942ee94628f22220 (diff) |
move -fvisibility=hidden to the top of the source tree, and remove its internal use; use libtimecode as a shared lib again
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -694,8 +694,19 @@ def configure(conf): conf.env.append_value('CFLAGS', '-DWAF_BUILD') conf.env.append_value('CXXFLAGS', '-DWAF_BUILD') - # Set up waf environment and C defines opts = Options.options + + # Adopt Microsoft-like convention that makes all non-explicitly exported + # symbols invisible (rather than doing this all over the wscripts in the src tree) + # + # This won't apply to MSVC but that hasn't been added as a target yet + # + # We can't do this till all tests are complete, since some fail if this is et. + if opts.internal_shared_libs: + conf.env.append_value ('CXXFLAGS', '-fvisibility=hidden') + conf.env.append_value ('CFLAGS', '-fvisibility=hidden') + + # Set up waf environment and C defines if opts.phone_home: conf.define('PHONE_HOME', 1) conf.env['PHONE_HOME'] = True |