summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-01-12 11:34:37 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-01-12 15:40:47 -0500
commit5062a00c7d2580d1245f7ad14760a91939c34bdc (patch)
tree83686b846f3e5eb788b8f6a7c69974b69aa0be98 /wscript
parent2c21cbb0444e69e80a1293d7942ee94628f22220 (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--wscript13
1 files changed, 12 insertions, 1 deletions
diff --git a/wscript b/wscript
index a0b439e48c..f665ff9a2f 100644
--- a/wscript
+++ b/wscript
@@ -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