diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-23 14:38:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-23 14:38:41 +0100 |
| commit | 29b1e040e64b8ffc69fe9a9a126d8c318a71cfae (patch) | |
| tree | edc6cd532a08310a0557aa4e073fb7d04de8b4fe /wscript | |
| parent | 1296b7a8d4cdca3798036e3f069d1b76c4d5db3c (diff) | |
Try to allow build with gcc 4.1.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
