diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-30 23:10:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-01 23:45:55 +0200 |
| commit | 1ba0d87bdfba2674170f334117cc6377755a5c29 (patch) | |
| tree | 212df3cab0c0297a7d924915ed85c446865786ce | |
| parent | a3598552e8c9d42afc925d6f633b8c84b86a7c76 (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']) |
