Author: loonycyborg
Date: Sat Feb 26 21:50:50 2011
New Revision: 48648

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48648&view=rev
Log:
Made config check for boost.thread add -pthread to compile and link flags.

This should fix asio check failing with undefined references to libpthread
on some systems.

Modified:
    trunk/scons/boost.py

Modified: trunk/scons/boost.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/scons/boost.py?rev=48648&r1=48647&r2=48648&view=diff
==============================================================================
--- trunk/scons/boost.py (original)
+++ trunk/scons/boost.py Sat Feb 26 21:50:50 2011
@@ -67,6 +67,8 @@
         env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
     if not header_only:
         env.AppendUnique(LIBS = [libname])
+    if boost_lib == "thread" and env["PLATFORM"] == "posix":
+        env.AppendUnique(CCFLAGS = ["-pthread"], LINKFLAGS = ["-pthread"])
 
     test_program = """
         #include <boost/%s>


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to