diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-09 16:17:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-03 17:01:32 +0100 |
| commit | cc2f56be277e10ffe01072544a99a966daba6326 (patch) | |
| tree | cf365d923dbfc2795ed569b2a5947c2e76e6e995 /wscript | |
| parent | eb10cbf75cf9d8c2f13174713a96110cbdf0650f (diff) | |
Fix build on old GCCs.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -27,7 +27,9 @@ def configure(conf): conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter', '-Wno-unused-local-typedef']) if conf.env.TARGET_LINUX: - conf.env.append_value('CXXFLAGS', ['-Wno-unused-result']) + gcc = conf.env['CC_VERSION'] + if int(gcc[0]) >= 4 and int(gcc[1]) > 1: + conf.env.append_value('CXXFLAGS', ['-Wno-unused-result']) conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True) |
