diff --git a/src/tools/builtin.jam b/src/tools/builtin.jam index 4276c24d0..65f240b11 100644 --- a/src/tools/builtin.jam +++ b/src/tools/builtin.jam @@ -495,18 +495,21 @@ class searched-lib-generator : generator { shared = true ; } + + local search = [ feature.get-values : $(properties) ] ; a = [ new null-action $(property-set) ] ; local t = [ new searched-lib-target $(name) : $(project) : $(shared) : [ feature.get-values : $(properties) ] - : [ feature.get-values : $(properties) ] + : $(search) : $(a) ] ; # We return sources for a simple reason. If there's # lib png : z : png ; # the 'z' target should be returned, so that apps linking to # 'png' will link to 'z', too. - return [ virtual-target.register $(t) ] $(sources) ; + return [ property-set.create $(search) ] + [ virtual-target.register $(t) ] $(sources) ; } } } diff --git a/src/tools/unix.jam b/src/tools/unix.jam index 3feff168b..29f869488 100644 --- a/src/tools/unix.jam +++ b/src/tools/unix.jam @@ -112,7 +112,7 @@ class unix-searched-lib-generator : searched-lib-generator local result = [ searched-lib-generator.run $(project) $(name) : $(property-set) : $(sources) ] ; - unix.set-library-order $(sources) : $(property-set) : $(result) ; + unix.set-library-order $(sources) : $(property-set) : $(result[2-]) ; return $(result) ; }