From bb0ca427dfb92ec6c7cf93389e05e3b4d8a050e8 Mon Sep 17 00:00:00 2001 From: Kostadin Damyanov Date: Tue, 12 Jan 2016 10:47:22 +0200 Subject: [PATCH] unittests: link libcppunit.so to the unittests directory Signed-off-by: Adrien Destugues Fixes #12595. --- src/tools/cppunit/Jamfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tools/cppunit/Jamfile b/src/tools/cppunit/Jamfile index 3e75287a2e..ffb20ade3a 100644 --- a/src/tools/cppunit/Jamfile +++ b/src/tools/cppunit/Jamfile @@ -55,3 +55,11 @@ SharedLibrary libcppunit.so : if $(OS) = BEOS && $(OSPLAT) != PPC { LinkAgainst libcppunit.so : libelfsymbolpatcher.a ; } + +# To run the tests we need the cppunit library. +{ + local target = libcppunit.so ; + MakeLocate $(target) : $(TARGET_UNIT_TEST_LIB_DIR) ; + RelSymLink $(target) : libcppunit.so ; + Depends libcppunit.so : $(target) ; +}