summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-07 16:26:38 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-07 16:26:38 +0100
commita6ec1ef3c10f9aab5c983f8d362f6af4a87f35f3 (patch)
treecaf0cd03f544027bdb5c5fc92dc2a6c5772acc22 /wscript
parent599233fc9ce3014de2cb522b28a536147fc331dd (diff)
Don't link to lzma on OS X.
Diffstat (limited to 'wscript')
-rw-r--r--wscript16
1 files changed, 9 insertions, 7 deletions
diff --git a/wscript b/wscript
index a972daa02..28a8d91fe 100644
--- a/wscript
+++ b/wscript
@@ -22,6 +22,13 @@ def configure(conf):
if conf.options.target_windows:
conf.load('winres')
+ conf.env.TARGET_WINDOWS = conf.options.target_windows
+ conf.env.DISABLE_GUI = conf.options.disable_gui
+ conf.env.STATIC = conf.options.static
+ conf.env.VERSION = VERSION
+ conf.env.TARGET_OSX = conf.options.osx
+ conf.env.TARGET_LINUX = not conf.options.target_windows and not conf.options.osx
+
conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing',
'-Wall', '-Wno-attributes', '-Wextra'])
@@ -45,16 +52,11 @@ def configure(conf):
boost_lib_suffix = ''
boost_thread = 'boost_thread'
conf.env.append_value('LINKFLAGS', '-pthread')
+
+ if conf.env.TARGET_LINUX:
# libxml2 seems to be linked against this on Ubuntu, but it doesn't mention it in its .pc file
conf.env.append_value('LIB', 'lzma')
- conf.env.TARGET_WINDOWS = conf.options.target_windows
- conf.env.DISABLE_GUI = conf.options.disable_gui
- conf.env.STATIC = conf.options.static
- conf.env.VERSION = VERSION
- conf.env.TARGET_OSX = conf.options.osx
- conf.env.TARGET_LINUX = not conf.options.target_windows and not conf.options.osx
-
if conf.options.enable_debug:
conf.env.append_value('CXXFLAGS', ['-g', '-DDVDOMATIC_DEBUG'])
else: