diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-05 15:55:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-05 15:55:33 +0000 |
| commit | 4e4e5f750fea7bb011c5c12181a55b90b3202cb7 (patch) | |
| tree | 29833fbdd48f10b84b6adef82a45f4760aa72c75 /wscript | |
| parent | e74c0496999dc3d81ef18985a7704e53bf129437 (diff) | |
| parent | 0bddbf86f76cb9885ac59dfac773766d3b9faae5 (diff) | |
Merge.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,6 @@ import subprocess import os +from waflib import Context APPNAME = 'libsub' VERSION = '1.1.9devel' @@ -89,6 +90,13 @@ def configure(conf): if not conf.env.DISABLE_TESTS: conf.recurse('test') + # libxml++ 2.39.1 and later must be built with -std=c++11 + libxmlpp_version = conf.cmd_and_log(['pkg-config', '--modversion', 'libxml++-2.6'], output=Context.STDOUT, quiet=Context.BOTH) + s = libxmlpp_version.split('.') + v = (int(s[0]) << 16) | (int(s[1]) << 8) | int(s[2]) + if v >= 0x022701: + conf.env.append_value('CXXFLAGS', '-std=c++11') + def build(bld): create_version_cc(bld, VERSION) |
