summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-23 14:38:41 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-23 14:38:41 +0100
commit29b1e040e64b8ffc69fe9a9a126d8c318a71cfae (patch)
treeedc6cd532a08310a0557aa4e073fb7d04de8b4fe /wscript
parent1296b7a8d4cdca3798036e3f069d1b76c4d5db3c (diff)
Try to allow build with gcc 4.1.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 0fe56f0c..38dada21 100644
--- a/wscript
+++ b/wscript
@@ -38,7 +38,10 @@ def options(opt):
def configure(conf):
conf.load('compiler_cxx')
- conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-Wno-maybe-uninitialized', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS'])
+ conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS'])
+ gcc = conf.env['CC_VERSION']
+ if gcc[0] >= 4 and gcc[1] > 1:
+ conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])
conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION])
conf.env.TARGET_WINDOWS = conf.options.target_windows