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>2019-12-03 17:01:32 +0100
commitcc2f56be277e10ffe01072544a99a966daba6326 (patch)
treecf365d923dbfc2795ed569b2a5947c2e76e6e995 /wscript
parenteb10cbf75cf9d8c2f13174713a96110cbdf0650f (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 dee54d2..d836e86 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)