summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-28 23:29:22 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-28 23:29:22 +0100
commit4f0849a556a93768e062f08aa426900fcc137345 (patch)
tree81c0d2fe289fe8b8a2b14bf76e3f19097ccc9adc
parent83deeeafe2e81b42ff485e4582d4c1ac00872f50 (diff)
OS X build workaround.
-rw-r--r--SConstruct17
1 files changed, 10 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct
index 94a14d5..316810d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2,13 +2,16 @@ AddOption('--release', action = 'store_true')
env = Environment(CPPPATH = ['.'], CCFLAGS = ['-pthread'], LINKFLAGS = ['-pthread'])
-conf = Configure(env)
-conf.CheckLib('boost_system-mt')
-conf.CheckLib('boost_filesystem-mt')
-conf.CheckLib('boost_regex-mt')
-conf.CheckLib('boost_thread-mt')
-conf.CheckLib('mp3lame')
-env = conf.Finish()
+if env['PLATFORM'] == 'darwin':
+ env.Append(LIBS = ['boost_system', 'boost_filesystem', 'boost_regex', 'boost_thread', 'mp3lame'])
+else:
+ conf = Configure(env)
+ print conf.CheckLib('boost_system-mt')
+ print conf.CheckLib('boost_filesystem-mt')
+ print conf.CheckLib('boost_regex-mt')
+ print conf.CheckLib('boost_thread-mt')
+ print conf.CheckLib('mp3lame')
+ env = conf.Finish()
if GetOption('release'):
env.Append(CCFLAGS = ['-O2'])