2
0
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:
Rene Rivera
2003-07-13 16:09:08 +00:00
parent 94bec3a1e0
commit b03e54c968
2 changed files with 4 additions and 4 deletions

View File

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

View File

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