diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-25 15:04:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-25 19:02:57 +0200 |
| commit | 2bab31b0ab987688a283c802be939f6c68c74773 (patch) | |
| tree | c7aa5300d8e0d3f17f97b68616fe1866ab0ea76b | |
| parent | fe29e20ab6e2e5c4ba9dbd2e56adb1ef6e79100e (diff) | |
Fix build on Arch with boost 1.89.v0.17.15
| -rw-r--r-- | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -77,13 +77,19 @@ def configure(conf): conf.check_cfg(package='libxml++-' + conf.env.XMLPP_API, args='--cflags --libs', uselib_store='LIBXML++', mandatory=True) + boost_system = conf.check_cxx(lib='boost_system%s' % boost_lib_suffix, mandatory=False) + def boost_libs(name): + libs = ['boost_system%s' % boost_lib_suffix] if boost_system else [] + libs.append('boost_%s%s' % (name, boost_lib_suffix)) + return libs + conf.check_cxx(fragment=""" #include <boost/filesystem.hpp>\n int main() { boost::filesystem::copy_file ("a", "b"); }\n """, msg='Checking for boost filesystem library', libpath='/usr/local/lib', - lib=['boost_filesystem%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], + lib=boost_libs('filesystem'), uselib_store='BOOST_FILESYSTEM') if not conf.options.disable_tests: @@ -93,7 +99,7 @@ def configure(conf): BOOST_AUTO_TEST_CASE(foo) {} """, msg='Checking for boost unit testing library', - lib=['boost_unit_test_framework%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], + lib=boost_libs('unit_test_framework'), uselib_store='BOOST_TEST') conf.recurse('test') |
