id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 5820,SEARCHED_LIB targets always treated as shared by clang module,Ai Azuma ,Vladimir Prus,"When using the clang module of Boost.Build, SEARCHED_LIB targets specified by ""static"" property does not work properly, and the targets are always treated as shared ones. For example, when I write the following jamroot file, {{{ # jamroot lib gmp ; exe test.exe : test.cpp gmp/static ; }}} test.exe links against the shared version of gmp (libgmp.so). {{{ $ bjam -a -d+2 toolset=clang compile.c++.without-pth bin/clang-linux-3.0/debug/test.o ""clang++"" -c -x c++ -O0 -g -fno-inline -Wall -g -fPIC -o ""bin/clang-linux-3.0/debug/test.o"" ""test.cpp"" clang-linux.link bin/clang-linux-3.0/debug/test ""clang++"" -o ""bin/clang-linux-3.0/debug/test"" ""bin/clang-linux-3.0/debug/test.o"" -lgmp -g }}} The problem here is ""-l"" option does not follow any ""-Wl,-Bstatic"" flag. Note that the gcc module works properly on the same jamroot, of course. {{{ $ bjam -a -d+2 toolset=gcc gcc.compile.c++ bin/gcc-4.4.5/debug/test.o ""g++"" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -c -o ""bin/gcc-4.4.5/debug/test.o"" ""test.cpp"" gcc.link bin/gcc-4.4.5/debug/test ""g++"" -o ""bin/gcc-4.4.5/debug/test"" -Wl,--start-group ""bin/gcc-4.4.5/debug/test.o"" -Wl,-Bstatic -lgmp -Wl,-Bdynamic -Wl,--end-group -g }}} ",Bugs,closed,To Be Determined,build,Boost 1.47.0,Problem,fixed,,flast@…