diff --git a/v2/test/gcc_runtime.py b/v2/test/gcc_runtime.py index aa72dd53f..e49fb40e6 100644 --- a/v2/test/gcc_runtime.py +++ b/v2/test/gcc_runtime.py @@ -24,11 +24,11 @@ int main() } """) -t.run_build_system("link-runtime=static", status=1) +t.run_build_system("runtime-link=static", status=1) t.fail_test(string.find(t.stdout(), - "on gcc, DLL can't be build with static") == -1) + "on gcc, DLL can't be build with static") == -1) -t.run_build_system("link=static link-runtime=static") -t.expect_addition("bin/$toolset/debug/link-runtime-static/link-static/hello.lib") +t.run_build_system("link=static runtime-link=static") +t.expect_addition("bin/$toolset/debug/link-static/runtime-link-static/hello.lib") t.cleanup() diff --git a/v2/test/searched_lib.py b/v2/test/searched_lib.py index 4a411ccef..b3a3ade1a 100644 --- a/v2/test/searched_lib.py +++ b/v2/test/searched_lib.py @@ -132,7 +132,7 @@ t.write("project-root.jam", "") t.write("a.cpp", "") t.write("Jamfile", """ -project a : requirements static ; +project a : requirements static ; static-lib a : a.cpp l ; lib l : : l_f ; diff --git a/v2/tools/borland.jam b/v2/tools/borland.jam index 30fbf3ccf..610c5ef1f 100644 --- a/v2/tools/borland.jam +++ b/v2/tools/borland.jam @@ -75,7 +75,7 @@ flags borland OPTIONS console : -tWC ; # -tWR sets -tW as well, so we turn it off here and then turn it # on again later if we need it: -flags borland OPTIONS shared : -tWR -tWC ; +flags borland OPTIONS shared : -tWR -tWC ; flags borland OPTIONS gui : -tW ; flags borland OPTIONS LIB/shared : -tWD ; diff --git a/v2/tools/builtin.jam b/v2/tools/builtin.jam index 7d15abae1..da5f00e5c 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -33,7 +33,7 @@ feature toolset : : implicit propagated symmetric ; feature stdlib : native : propagated composite ; feature link : shared static : propagated ; -feature link-runtime : shared static : propagated ; +feature runtime-link : shared static : propagated ; feature runtime-debugging : on off : propagated ; diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index 60dead6dd..254f74aa5 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -154,18 +154,18 @@ actions compile.c } # The class which check that we don't try to use -# the static property while creating or using shared library, +# the static property while creating or using shared library, # since it's not supported by gcc/libc. class gcc-linking-generator : unix-linking-generator { rule generated-targets ( sources + : property-set : project name ? ) { - if static in [ $(property-set).raw ] + if static in [ $(property-set).raw ] { local m ; if [ id ] = "gcc.link.dll" { - m = "on gcc, DLL can't be build with static" ; + m = "on gcc, DLL can't be build with static" ; } if ! $(m) { for local s in $(sources) @@ -173,14 +173,14 @@ class gcc-linking-generator : unix-linking-generator local type = [ $(s).type ] ; if $(type) && [ type.is-derived $(type) SHARED_LIB ] { - m = "on gcc, using DLLS together with the static options is not possible " ; + m = "on gcc, using DLLS together with the static options is not possible " ; } } } if $(m) { errors.user-error $(m) : - "it's suggested to use static together with the static" ; + "it's suggested to use static together with the static" ; } } @@ -211,9 +211,9 @@ flags gcc.link FINDLIBS-ST ; flags gcc.link FINDLIBS-SA ; flags gcc.link LIBRARIES ; -# For static we made sure there are no dynamic libraries +# For static we made sure there are no dynamic libraries # in the link -flags gcc.link OPTIONS static : -static ; +flags gcc.link OPTIONS static : -static ; # Now, the vendor specific flags # The parameter linker can be either gnu or sun diff --git a/v2/tools/ifort.jam b/v2/tools/ifort.jam index 61ffc4541..eb7c19881 100644 --- a/v2/tools/ifort.jam +++ b/v2/tools/ifort.jam @@ -22,12 +22,12 @@ flags ifort OPTIONS space : /O1 ; flags ifort OPTIONS on : /debug:full ; flags ifort OPTIONS on : /Qprof_gen ; -flags ifort.compile FFLAGS off/shared : /MD ; -flags ifort.compile FFLAGS on/shared : /MDd ; -flags ifort.compile FFLAGS off/static/single : /ML ; -flags ifort.compile FFLAGS on/static/single : /MLd ; -flags ifort.compile FFLAGS off/static/multi : /MT ; -flags ifort.compile FFLAGS on/static/multi : /MTd ; +flags ifort.compile FFLAGS off/shared : /MD ; +flags ifort.compile FFLAGS on/shared : /MDd ; +flags ifort.compile FFLAGS off/static/single : /ML ; +flags ifort.compile FFLAGS on/static/single : /MLd ; +flags ifort.compile FFLAGS off/static/multi : /MT ; +flags ifort.compile FFLAGS on/static/multi : /MTd ; flags ifort DEFINES ; flags ifort INCLUDES ; diff --git a/v2/tools/msvc.jam b/v2/tools/msvc.jam index 33407f61d..c0787cb02 100644 --- a/v2/tools/msvc.jam +++ b/v2/tools/msvc.jam @@ -253,13 +253,13 @@ flags msvc.compile C++FLAGS on/on/on/on/on : /EHac ; flags msvc.compile CFLAGS on : /GR ; -flags msvc.compile CFLAGS off/shared : /MD ; -flags msvc.compile CFLAGS on/shared : /MDd ; +flags msvc.compile CFLAGS off/shared : /MD ; +flags msvc.compile CFLAGS on/shared : /MDd ; -flags msvc.compile CFLAGS off/static/single : /ML ; -flags msvc.compile CFLAGS on/static/single : /MLd ; -flags msvc.compile CFLAGS off/static/multi : /MT ; -flags msvc.compile CFLAGS on/static/multi : /MTd ; +flags msvc.compile CFLAGS off/static/single : /ML ; +flags msvc.compile CFLAGS on/static/single : /MLd ; +flags msvc.compile CFLAGS off/static/multi : /MT ; +flags msvc.compile CFLAGS on/static/multi : /MTd ; flags msvc.compile USER_CFLAGS : ; flags msvc.compile.c++ USER_CFLAGS : ; diff --git a/v2/tools/stage.jam b/v2/tools/stage.jam index 43442b349..97bfdf0cb 100644 --- a/v2/tools/stage.jam +++ b/v2/tools/stage.jam @@ -429,7 +429,7 @@ rule rename ( name : type ? : property-set : unversioned ? ) if multi in $(properties) { thread-tag = mt ; } local runtime-tag = ; - if static in $(properties) { runtime-tag += s ; } + if static in $(properties) { runtime-tag += s ; } if debug in $(properties) { runtime-tag += g ; } if debug-python in $(properties) { runtime-tag += y ; } diff --git a/v2/tools/sun.jam b/v2/tools/sun.jam index 80c4e3733..9ba7674bd 100644 --- a/v2/tools/sun.jam +++ b/v2/tools/sun.jam @@ -76,8 +76,8 @@ flags sun.link LINKPATH ; flags sun.link FINDLIBS-ST ; flags sun.link FINDLIBS-SA ; flags sun.link LIBRARIES ; -flags sun.link LINK-RUNTIME static : static ; -flags sun.link LINK-RUNTIME shared : dynamic ; +flags sun.link LINK-RUNTIME static : static ; +flags sun.link LINK-RUNTIME shared : dynamic ; flags sun.link RPATH ; # On gcc, there are separate options for dll path at runtime and # link time. On Solaris, there's only one: -R, so we have to use diff --git a/v2/tools/vacpp.jam b/v2/tools/vacpp.jam index 5b72469a7..8ddb80f53 100644 --- a/v2/tools/vacpp.jam +++ b/v2/tools/vacpp.jam @@ -43,8 +43,8 @@ flags vacpp C++FLAGS on : -qeh ; flags vacpp C++FLAGS off : -qnortti ; flags vacpp C++FLAGS on : -qrtti ; -# flags vacpp LINKFLAGS static : -llibstd_v2.a ; -# flags vacpp LINKFLAGS shared : -llibstd_v2.sl ; +# flags vacpp LINKFLAGS static : -llibstd_v2.a ; +# flags vacpp LINKFLAGS shared : -llibstd_v2.sl ; # We want the full path to the sources in the debug symbols because otherwise # the debugger won't find the sources when we use boost.build.