diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-03 21:42:13 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-04 01:07:33 +0200 |
| commit | a782f96fe18d3031f07705be602c186f23c51aee (patch) | |
| tree | 93b790a56b81ef8b9f41e9f421ae46c46046314e /wscript | |
| parent | 52a482ef5d0ed791d7e9a0a30c143a8e3012023a (diff) | |
Handle static link with boost better, and extend it to Ubuntu 16.04.v1.6.50
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -76,6 +76,7 @@ def options(opt): opt.load('compiler_cxx') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build libsub statically') + opt.add_option('--static-boost', action='store_true', default=False, help='link statically to boost') opt.add_option('--target-windows-64', action='store_true', default=False, help='set up to do a cross-compile to make a Windows package 64-bit') opt.add_option('--target-windows-32', action='store_true', default=False, help='set up to do a cross-compile to make a Windows package 32-bit') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') @@ -109,6 +110,9 @@ def configure(conf): # Disable libxml++ deprecation warnings for now conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-declarations']) + if not conf.options.static_boost: + conf.env.append_value('CXXFLAGS', '-DBOOST_TEST_DYN_LINK') + conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True) boost_lib_suffix = '' |
