From b03e54c968adcef5922f5f24624ebe1d2f4044bf Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 13 Jul 2003 16:09:08 +0000 Subject: [PATCH] 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] --- boost-base.jam | 4 ++-- v1/boost-base.jam | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boost-base.jam b/boost-base.jam index 45664b4ca..a27567ff7 100644 --- a/boost-base.jam +++ b/boost-base.jam @@ -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($(>))) ] ; diff --git a/v1/boost-base.jam b/v1/boost-base.jam index 45664b4ca..a27567ff7 100644 --- a/v1/boost-base.jam +++ b/v1/boost-base.jam @@ -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($(>))) ] ;