2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Corretly set threading options when using stlport-io library.

[SVN r19891]
This commit is contained in:
Rene Rivera
2003-09-01 06:31:21 +00:00
parent a732329dfe
commit f44beffdf2
2 changed files with 76 additions and 4 deletions

View File

@@ -19,5 +19,41 @@ else
SEARCH on stlport.jam = $(BOOST_BUILD_PATH) ;
include stlport.jam ;
# pthread is always needed when using the library (i.e. iostreams).
flags gcc-stlport FINDLIBS <stlport-iostream>on : pthread ;
# threading libraries always needed when using the library (i.e. iostreams).
if $(UNIX)
{
switch $(JAMUNAME)
{
case SunOS* :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthreads ;
flags gcc FINDLIBS <stlport-iostream>on : rt ;
}
case BeOS :
{
# BeOS has no threading options, don't set anything here.
}
case Darwin :
{
# MacOS X, doesn't need any threading options set
# -lpthread is linked to by default.
}
case *BSD :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthread ;
}
case IRIX :
{
# gcc on IRIX does not support multi-threading, don't set anything here.
}
case HP_UX :
{
# gcc on HP-UX does not support multi-threading, don't set anything here
}
case * :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthread ;
flags gcc FINDLIBS <stlport-iostream>on : rt ;
}
}
}

View File

@@ -19,5 +19,41 @@ else
SEARCH on stlport.jam = $(BOOST_BUILD_PATH) ;
include stlport.jam ;
# pthread is always needed when using the library (i.e. iostreams).
flags gcc-stlport FINDLIBS <stlport-iostream>on : pthread ;
# threading libraries always needed when using the library (i.e. iostreams).
if $(UNIX)
{
switch $(JAMUNAME)
{
case SunOS* :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthreads ;
flags gcc FINDLIBS <stlport-iostream>on : rt ;
}
case BeOS :
{
# BeOS has no threading options, don't set anything here.
}
case Darwin :
{
# MacOS X, doesn't need any threading options set
# -lpthread is linked to by default.
}
case *BSD :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthread ;
}
case IRIX :
{
# gcc on IRIX does not support multi-threading, don't set anything here.
}
case HP_UX :
{
# gcc on HP-UX does not support multi-threading, don't set anything here
}
case * :
{
flags gcc LINKFLAGS <stlport-iostream>on : -pthread ;
flags gcc FINDLIBS <stlport-iostream>on : rt ;
}
}
}