mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
Use root to find the archiver and ranlib if they are not specified.
This commit is contained in:
@@ -89,10 +89,18 @@ rule init ( version ? : command * : options * ) {
|
||||
|
||||
# - Ranlib.
|
||||
local ranlib = [ feature.get-values <ranlib> : $(options) ] ;
|
||||
if ! $(ranlib) && $(root)
|
||||
{
|
||||
ranlib = $(root)/bin/ranlib ;
|
||||
}
|
||||
toolset.flags clang-linux.archive .RANLIB $(condition) : $(ranlib[1]) ;
|
||||
|
||||
# - Archive builder.
|
||||
local archiver = [ feature.get-values <archiver> : $(options) ] ;
|
||||
if ! $(archiver) && $(root)
|
||||
{
|
||||
archiver = $(root)/bin/ar ;
|
||||
}
|
||||
toolset.flags clang-linux.archive .AR $(condition) : $(archiver[1]) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user