diff --git a/reporting/accuracy/Jamfile.v2 b/reporting/accuracy/Jamfile.v2 index 16ed5240e..9a2ec8f91 100644 --- a/reporting/accuracy/Jamfile.v2 +++ b/reporting/accuracy/Jamfile.v2 @@ -21,6 +21,17 @@ project ../../include_private ; +if $(is_unix) +{ + local osname = [ SHELL uname ] ; + + switch $(osname) + { + case "Sun*" : OTHERFLAGS = "-lpthread -lrt" ; + case "*BSD*" : OTHERFLAGS = "-lpthread" ; + } +} + # # Configuration first: # @@ -33,9 +44,24 @@ rule all-tests { local result ; for local source in [ glob test*.cpp ] { - result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework ] ; - result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework : : : [ check-target-builds has_libstdcxx_tr1 : TEST_LIBSTDCXX : no ] : $(source:B)_libstdcxx_tr1 ] ; - result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework : : : [ check-target-builds has_c99_cmath : TEST_C99 : no ] : $(source:B)_c99 ] ; + result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework ] + : : : + linux:-lpthread + linux:-lrt + gcc:$(OTHERFLAGS) + ; + result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework + : : : [ check-target-builds has_libstdcxx_tr1 : TEST_LIBSTDCXX : no ] : $(source:B)_libstdcxx_tr1 ] + linux:-lpthread + linux:-lrt + gcc:$(OTHERFLAGS) + ; + result += [ run $(source) /boost/regex//boost_regex /boost/system /boost/filesystem /boost/test//boost_unit_test_framework + : : : [ check-target-builds has_c99_cmath : TEST_C99 : no ] : $(source:B)_c99 ] + linux:-lpthread + linux:-lrt + gcc:$(OTHERFLAGS) + ; } return $(result) ; }