forked from boostorg/config
Try and set the right linker options on BSD and Sun platforms.
[SVN r52353]
This commit is contained in:
@@ -7,6 +7,22 @@
|
|||||||
# If you need to alter build preferences then set them in
|
# If you need to alter build preferences then set them in
|
||||||
# the template defined in options_v2.jam.
|
# 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
|
test-suite config
|
||||||
:
|
:
|
||||||
[ run config_test.cpp
|
[ run config_test.cpp
|
||||||
@@ -23,8 +39,7 @@ test-suite config
|
|||||||
<threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
|
<threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
|
||||||
<target-os>linux:<linkflags>-lpthread
|
<target-os>linux:<linkflags>-lpthread
|
||||||
<target-os>linux:<linkflags>-lrt
|
<target-os>linux:<linkflags>-lrt
|
||||||
<target-os>freebsd:<linkflags>-lpthread
|
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
||||||
<target-os>bsd:<linkflags>-lpthread
|
|
||||||
]
|
]
|
||||||
[ 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>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 ]
|
[ run config_info.cpp : : : <test-info>always_show_run_output <threading>multi : config_info_threaded ]
|
||||||
|
Reference in New Issue
Block a user