diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-30 23:10:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-30 23:10:49 +0200 |
| commit | 7d3b018675efdb8b1a4eeaf05c73f997977cb2e9 (patch) | |
| tree | df6a155c6fe633d252b53e795f7b78b506d24298 | |
| parent | bbb958c524fe1abe32984a6cd9c6616789f9e94b (diff) | |
Fix build on Centos 7.
| -rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -128,7 +128,9 @@ def configure(conf): conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type']) # Most gccs still give these warnings from boost::optional conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized']) - conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) + if int(gcc[0]) > 4: + # gcc 4.8.5 on Centos 7 does not have this warning + conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) if conf.options.enable_debug: conf.env.append_value('CXXFLAGS', ['-g', '-DDCPOMATIC_DEBUG', '-fno-omit-frame-pointer']) |
