2
0
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:
Edward Diener
2019-07-22 08:06:12 -04:00
parent a866b6d216
commit 72d9e39555

View File

@@ -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]) ;
}