diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-14 02:28:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-14 02:32:17 +0200 |
| commit | 9181f07af574cb45099c887349285f9c62157481 (patch) | |
| tree | 1e56a0a607dbebf3548c55c245fef444ce4a89e5 /wscript | |
| parent | 3768b728b46dcfd4bb6c34a70f566a31b09c6409 (diff) | |
Fix build on Ubuntu 16.04 now that we have a static boost library.v1.8.106
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,7 @@ def options(opt): opt.add_option('--target-windows-32', action='store_true', default=False, help='set up to do a cross-compile to Windows 32-bit') 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 libdcp statically, and link statically to openjpeg, cxml, asdcplib-carl') + opt.add_option('--static-boost', action='store_true', default=False, help='link statically to boost') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') opt.add_option('--disable-benchmarks', action='store_true', default=False, help='disable building of benchmarks') opt.add_option('--enable-gcov', action='store_true', default=False, help='use gcov in tests') @@ -102,6 +103,9 @@ def configure(conf): elif int(gcc[0]) > 4: conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) + if not conf.options.static_boost: + conf.env.append_value('CXXFLAGS', '-DBOOST_TEST_DYN_LINK') + # Disable libxml++ deprecation warnings for now conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-declarations']) |
