From 6acc7a2579c7842d8031aee29fb5fa1e015747fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Jul 2012 21:20:52 +0100 Subject: [PATCH] Fix posix build. --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 531f5ac8e..994f64bbc 100644 --- a/wscript +++ b/wscript @@ -8,6 +8,7 @@ VERSION = '0.30pre' def options(opt): opt.load('compiler_cxx') opt.load('winres') + opt.add_option('--debug-hash', action='store_true', default = False, help = 'print hashes of data at various points') opt.add_option('--enable-debug', action='store_true', default = False, help = 'build with debugging information and without optimisation') opt.add_option('--disable-gui', action='store_true', default = False, help = 'disable building of GUI tools') @@ -17,7 +18,8 @@ def options(opt): def configure(conf): conf.load('compiler_cxx') - conf.load('winres') + if conf.options.target_windows: + conf.load('winres') conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes']) conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_VERSION="%s"' % VERSION]) -- 2.30.2