diff options
author | Kenneth Heafield <github@kheafield.com> | 2013-06-05 15:30:05 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2013-06-05 15:30:05 +0400 |
commit | 36c17f3c933504dbb540ec318c8c6eb0554d1b87 (patch) | |
tree | b0d3056676e6c238463f4db3c47d954144b8b8cf /util | |
parent | 241432b47aac4829743737bdb5d589eebb5c57f5 (diff) |
librt only for single-threaded linux
Diffstat (limited to 'util')
-rw-r--r-- | util/Jamfile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/util/Jamfile b/util/Jamfile index 87ca96b97..910b30550 100644 --- a/util/Jamfile +++ b/util/Jamfile @@ -11,18 +11,15 @@ if [ test_library "lzma" ] && [ test_header "lzma.h" ] { compressed_deps += lzma ; } -local rt_deps = ; -if [ test_library "rt" ] { - external-lib rt ; - rt_deps += rt ; -} +#rt is needed for clock_gettime on linux. But it's already included with threading=multi +lib rt ; obj read_compressed.o : read_compressed.cc : $(compressed_flags) ; alias read_compressed : read_compressed.o $(compressed_deps) ; obj read_compressed_test.o : read_compressed_test.cc /top//boost_unit_test_framework : $(compressed_flags) ; obj file_piece_test.o : file_piece_test.cc /top//boost_unit_test_framework : $(compressed_flags) ; -fakelib kenutil : bit_packing.cc ersatz_progress.cc exception.cc file.cc file_piece.cc mmap.cc murmur_hash.cc pool.cc read_compressed scoped.cc string_piece.cc usage.cc double-conversion//double-conversion $(rt_deps) : <include>.. : : <include>.. ; +fakelib kenutil : bit_packing.cc ersatz_progress.cc exception.cc file.cc file_piece.cc mmap.cc murmur_hash.cc pool.cc read_compressed scoped.cc string_piece.cc usage.cc double-conversion//double-conversion : <include>.. <os>LINUX,<threading>single:<source>rt : : <include>.. ; import testing ; |