|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52353 - trunk/libs/config/test
From: john_at_[hidden]
Date: 2009-04-12 11:49:09
Author: johnmaddock
Date: 2009-04-12 11:49:08 EDT (Sun, 12 Apr 2009)
New Revision: 52353
URL: http://svn.boost.org/trac/boost/changeset/52353
Log:
Try and set the right linker options on BSD and Sun platforms.
Text files modified:
trunk/libs/config/test/Jamfile.v2 | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
Modified: trunk/libs/config/test/Jamfile.v2
==============================================================================
--- trunk/libs/config/test/Jamfile.v2 (original)
+++ trunk/libs/config/test/Jamfile.v2 2009-04-12 11:49:08 EDT (Sun, 12 Apr 2009)
@@ -7,6 +7,22 @@
# If you need to alter build preferences then set them in
# the template defined in options_v2.jam.
#
+
+import modules ;
+
+local is_unix = [ modules.peek : UNIX ] ;
+
+if $(is_unix)
+{
+ local osname = [ SHELL uname ] ;
+
+ switch $(osname)
+ {
+ case "Sun*" : OTHERFLAGS = "-lpthread" ;
+ case "*BSD*" : OTHERFLAGS = "-lpthread" ;
+ }
+}
+
test-suite config
:
[ run config_test.cpp
@@ -23,8 +39,7 @@
<threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
<target-os>linux:<linkflags>-lpthread
<target-os>linux:<linkflags>-lrt
- <target-os>freebsd:<linkflags>-lpthread
- <target-os>bsd:<linkflags>-lpthread
+ <toolset>gcc:<linkflags>$(OTHERFLAGS)
]
[ run config_info.cpp : : : <test-info>always_show_run_output <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static ]
[ run config_info.cpp : : : <test-info>always_show_run_output <threading>multi : config_info_threaded ]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk