Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > a655fc6186c836a251e0c41083f75910 > files > 4

globulation2-0.9.4.4-41.mga9.src.rpm

--- SConstruct.link	2009-08-30 21:23:30.000000000 +0200
+++ SConstruct	2012-08-03 03:49:42.040499704 +0200
@@ -111,20 +111,24 @@
             missing.append("zlib")
 
     boost_thread = ''
+    boost_system = ''
     if conf.CheckLib("boost_thread") and conf.CheckCXXHeader("boost/thread/thread.hpp"):
         boost_thread="boost_thread"
+        boost_system="boost_system"
     elif conf.CheckLib("boost_thread-mt") and conf.CheckCXXHeader("boost/thread/thread.hpp"):
         boost_thread="boost_thread-mt"
+	boost_system="boost_system-mt"
     else:
         print "Could not find libboost_thread or libboost_thread-mt or boost/thread/thread.hpp"
         missing.append("libboost_thread")
-    env.Append(LIBS=[boost_thread])
+    env.Append(LIBS=[boost_thread, boost_system])
+    env.Append(LIBS="pthread")
 
     boost_date_time = ''
     if conf.CheckLib("boost_date_time") and conf.CheckCXXHeader("boost/date_time/posix_time/posix_time.hpp"):
-        boost_thread="boost_thread"
+        boost_date_time="boost_date_time"
     elif conf.CheckLib("boost_date_time-mt") and conf.CheckCXXHeader("boost/date_time/posix_time/posix_time.hpp"):
-        boost_thread="boost_thread-mt"
+        boost_date_time="boost_date_time-mt"
     else:
         print "Could not find libboost_date_time or libboost_date_time-mt or boost/thread/thread.hpp"
         missing.append("libboost_date_time")