summaryrefslogtreecommitdiff
path: root/libs/ardour/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-17 12:41:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-17 12:41:28 -0400
commitf3d2ca0d9ac823d57af39d8d6a34c40e87fefa35 (patch)
treeae5e28532bb43bd845ba3f6634bfae6a6e2f0376 /libs/ardour/wscript
parent08fbc53d5275094023ba8b0956236c1c945ca4b3 (diff)
get everything compiling with libardour built using -fvisibility=hidden
Diffstat (limited to 'libs/ardour/wscript')
-rw-r--r--libs/ardour/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index 7ce462ebb5..6fec6ae9d0 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -241,7 +241,8 @@ def configure(conf):
autowaf.build_version_files(
path_prefix + 'ardour/version.h',
path_prefix + 'version.cc',
- 'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0)
+ 'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0,
+ 'LIBARDOUR_API', 'ardour/libardour_visibility.h')
autowaf.configure(conf)
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
atleast_version='0.3.2')
@@ -325,6 +326,8 @@ def build(bld):
obj.defines = [ 'LIBARDOUR_DLL=1', 'LIBARDOUR_DLL_EXPORTS=1' ]
# macros for this other internal shared libraries that we use
obj.defines += [ 'LIBEVORAL_DLL=1', 'LIBMIDIPP_DLL=1', 'LIBPBD_DLL=1' ]
+ obj.cflags = [ '-fvisibility=hidden' ]
+ obj.cxxflags = [ '-fvisibility=hidden' ]
else:
obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=libardour_sources)
obj.cxxflags = [ '-fPIC' ]