mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Fix linking in of libraires by test targets multiple times.
The fix ensures that the libraries we link to for targets are unique. [SVN r19096]
This commit is contained in:
@@ -1621,8 +1621,8 @@ else
|
||||
# depend-on-libraries target-files : library-targets
|
||||
rule depend-on-libraries
|
||||
{
|
||||
NEEDLIBS += $(>) ;
|
||||
NEEDLIBS on $(<) += $(>) ;
|
||||
NEEDLIBS = [ unique $(NEEDLIBS) $(>) ] ;
|
||||
NEEDLIBS on $(<) = [ on $(<) return [ unique $(NEEDLIBS) $(>) ] ] ;
|
||||
DEPENDS $(<) : $(>) ;
|
||||
# To run these targets, we need everything needed to run the libraries
|
||||
gRUN_PATH($(<)) = [ unique $(gRUN_PATH($(<))) $(gRUN_PATH($(>))) ] ;
|
||||
|
||||
@@ -1621,8 +1621,8 @@ else
|
||||
# depend-on-libraries target-files : library-targets
|
||||
rule depend-on-libraries
|
||||
{
|
||||
NEEDLIBS += $(>) ;
|
||||
NEEDLIBS on $(<) += $(>) ;
|
||||
NEEDLIBS = [ unique $(NEEDLIBS) $(>) ] ;
|
||||
NEEDLIBS on $(<) = [ on $(<) return [ unique $(NEEDLIBS) $(>) ] ] ;
|
||||
DEPENDS $(<) : $(>) ;
|
||||
# To run these targets, we need everything needed to run the libraries
|
||||
gRUN_PATH($(<)) = [ unique $(gRUN_PATH($(<))) $(gRUN_PATH($(>))) ] ;
|
||||
|
||||
Reference in New Issue
Block a user