summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-05 01:22:19 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-05 01:22:19 +0100
commit4ac6ff999413ea65c7ab7f73d6011b6a8b4b3cff (patch)
tree8acace02434dd360f5f252b619e5ef0476e239ea /wscript
parentd8f406953e431242fd6f0ecc3f13549bd0b781f1 (diff)
Try to fix backtrace link on Windows.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript b/wscript
index 108e01162..d8c08a762 100644
--- a/wscript
+++ b/wscript
@@ -181,6 +181,14 @@ def configure(conf):
libpath='/usr/local/lib',
lib=['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix],
uselib_store='BOOST_LOCALE')
+ conf.check_cxx(fragment="""
+ #include <boost/stacktrace.hpp>\n
+ int main() { }\n
+ """,
+ msg='Checking for boost stacktrace library',
+ libpath='/usr/local/lib',
+ lib=['boost_stacktrace%s' % boost_lib_suffix,
+ uselib_store='BOOST_STACKTRACE')
conf.env.append_value('CXXFLAGS', ['-DBOOST_STACKTRACE_LINK', '-DBOOST_STACKTRACE_USE_BACKTRACE'])
conf.check(lib='dl', uselib_store='DL', msg="Checking for library dl")
conf.check(lib='backtrace', uselib_store='BACKTRACE', msg="Checking for library backtrace")