Line | |
---|
1 | # (C) Copyright David Abrahams and Carlos Pinto Coelho 2001. |
---|
2 | # Distributed under the Boost Software License, Version 1.0. |
---|
3 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | |
---|
5 | # this is simply an extension to the gcc toolset. |
---|
6 | extends-toolset gcc ; |
---|
7 | |
---|
8 | flags $(gCURRENT_TOOLSET) STLPORT_LIB_BASE_NAME ; |
---|
9 | |
---|
10 | if $(NT) |
---|
11 | { |
---|
12 | STLPORT_LIB_BASE_NAME = stlport_cygwin ; |
---|
13 | } |
---|
14 | else |
---|
15 | { |
---|
16 | STLPORT_LIB_BASE_NAME = stlport_gcc ; |
---|
17 | } |
---|
18 | |
---|
19 | SEARCH on stlport.jam = $(BOOST_BUILD_PATH) ; |
---|
20 | include stlport.jam ; |
---|
21 | |
---|
22 | # threading libraries always needed when using the library (i.e. iostreams). |
---|
23 | if $(UNIX) |
---|
24 | { |
---|
25 | switch $(JAMUNAME) |
---|
26 | { |
---|
27 | case SunOS* : |
---|
28 | { |
---|
29 | flags gcc LINKFLAGS <stlport-iostream>on : -pthreads ; |
---|
30 | flags gcc FINDLIBS <stlport-iostream>on : rt ; |
---|
31 | } |
---|
32 | case BeOS : |
---|
33 | { |
---|
34 | # BeOS has no threading options, don't set anything here. |
---|
35 | } |
---|
36 | case Darwin : |
---|
37 | { |
---|
38 | # MacOS X, doesn't need any threading options set |
---|
39 | # -lpthread is linked to by default. |
---|
40 | } |
---|
41 | case *BSD : |
---|
42 | { |
---|
43 | flags gcc LINKFLAGS <stlport-iostream>on : -pthread ; |
---|
44 | } |
---|
45 | case IRIX : |
---|
46 | { |
---|
47 | # gcc on IRIX does not support multi-threading, don't set anything here. |
---|
48 | } |
---|
49 | case HP_UX : |
---|
50 | { |
---|
51 | # gcc on HP-UX does not support multi-threading, don't set anything here |
---|
52 | } |
---|
53 | case * : |
---|
54 | { |
---|
55 | flags gcc LINKFLAGS <stlport-iostream>on : -pthread ; |
---|
56 | flags gcc FINDLIBS <stlport-iostream>on : rt ; |
---|
57 | } |
---|
58 | } |
---|
59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.