Compile fixes for ubuntu 12.10
authorCarl Hetherington <cth@carlh.net>
Mon, 29 Oct 2012 13:09:04 +0000 (13:09 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 29 Oct 2012 13:09:04 +0000 (13:09 +0000)
wscript

diff --git a/wscript b/wscript
index 46f2a6815ecdb388d1eee2ee560f9433fd3dee3b..2bc0781e413f673c7edd8074ad296aaa04ad1105 100644 (file)
--- a/wscript
+++ b/wscript
@@ -37,6 +37,7 @@ def configure(conf):
         conf.env.append_value('CXXFLAGS', '-DDVDOMATIC_POSIX')
         boost_lib_suffix = ''
         boost_thread = 'boost_thread'
+        conf.env.append_value('LINKFLAGS', '-pthread')
 
     conf.env.TARGET_WINDOWS = conf.options.target_windows
     conf.env.DISABLE_GUI = conf.options.disable_gui
@@ -84,7 +85,7 @@ def configure(conf):
                              #include <boost/thread.hpp>\n
                              int main() { boost::thread t (); }\n
                              """, msg = 'Checking for boost threading library',
-                              lib = [boost_thread, 'boost_system%s' % boost_lib_suffix],
+                              lib = [boost_thread],
                               uselib_store = 'BOOST_THREAD')
 
     conf.check_cxx(fragment = """