summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-04 02:43:22 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-04 02:43:22 +0000
commitffcbc9ab9e43f04dfa4588e7c88f038c4fc39bed (patch)
treeacda1120b9720081af6f992f16f607513332f488 /wscript
parentc49fcda656d3f9f49bef362e1fbea4ecd6e1bb8c (diff)
provide a way to add additional libraries so that we can find libs that (stupidly) do not use pkg-config and are not installed in "standard" locations
git-svn-id: svn://localhost/ardour2/branches/3.0@12170 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/wscript b/wscript
index e8bc76e222..0e26bdb12e 100644
--- a/wscript
+++ b/wscript
@@ -413,7 +413,9 @@ def options(opt):
opt.add_option('--boost-include', type='string', action='store', dest='boost_include', default='',
help='directory where Boost header files can be found')
opt.add_option('--also-include', type='string', action='store', dest='also_include', default='',
- help='additional include directory where header files can be found')
+ help='additional include directory where header files can be found (split multiples with commas)')
+ opt.add_option('--also-libdir', type='string', action='store', dest='also_libdir', default='',
+ help='additional include directory where shared libraries can be found (split multiples with commas)')
opt.add_option('--wine-include', type='string', action='store', dest='wine_include', default='/usr/include/wine/windows',
help='directory where Wine\'s Windows header files can be found')
opt.add_option('--noconfirm', action='store_true', default=False, dest='noconfirm',
@@ -531,6 +533,9 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', '-I' + Options.options.also_include)
conf.env.append_value('CFLAGS', '-I' + Options.options.also_include)
+ if Options.options.also_libdir != '':
+ conf.env.append_value('LDFLAGS', '-L' + Options.options.also_libdir)
+
autowaf.check_header(conf, 'cxx', 'boost/signals2.hpp', mandatory = True)
if Options.options.boost_sp_debug: