diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-03 11:42:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-03 11:42:35 +0000 |
| commit | 53d49acd4079197873bd93fbf5f2adcd1d09bdd6 (patch) | |
| tree | 87dce5398b100e409b9553caea3ba2d862e2ecd3 | |
| parent | dda3e2036da42a1b1e00744546f9529dce4d76fb (diff) | |
Use -std=c++11 for new libxml++ versions.
| -rwxr-xr-x | waf | bin | 87683 -> 100743 bytes | |||
| -rw-r--r-- | wscript | 9 |
2 files changed, 9 insertions, 0 deletions
| Binary files differ @@ -1,3 +1,5 @@ +from waflib import Context + APPNAME = 'libcxml' VERSION = '0.15.0devel' API_VERSION = '0.0.0' @@ -45,6 +47,13 @@ def configure(conf): 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): bld(source='libcxml.pc.in', |
