diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-09 16:17:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-09 16:17:24 +0100 |
| commit | 5f32ac0c894cb93c4efdb0af65b94c45e7a24f44 (patch) | |
| tree | 331553e24ad59a5d4f928bf762060ab85dcc7eb3 /wscript | |
| parent | 6af9b61e47e6918835b043ec89b8153eeab8300c (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) |
