summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-09 16:17:24 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-09 16:17:24 +0100
commit5f32ac0c894cb93c4efdb0af65b94c45e7a24f44 (patch)
tree331553e24ad59a5d4f928bf762060ab85dcc7eb3 /wscript
parent6af9b61e47e6918835b043ec89b8153eeab8300c (diff)
Fix build on old GCCs.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 1960e63..55abde6 100644
--- a/wscript
+++ b/wscript
@@ -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)