From 56430ad8002b8fd1ac69b590e9cc130de6d9e852 Mon Sep 17 00:00:00 2001 From: Mark Hellegers Date: Sat, 28 May 2016 19:47:00 +0000 Subject: [PATCH] cppunit: Enable elf symbol patching for Haiku. Fixes #12799. Signed-off-by: Augustin Cavalier --- headers/tools/cppunit/TestShell.h | 4 +++- src/tools/cppunit/Jamfile | 6 +++--- src/tools/cppunit/TestShell.cpp | 4 ---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/headers/tools/cppunit/TestShell.h b/headers/tools/cppunit/TestShell.h index 2704e13364..9ceb8a29d1 100644 --- a/headers/tools/cppunit/TestShell.h +++ b/headers/tools/cppunit/TestShell.h @@ -17,7 +17,9 @@ class BDirectory; class BLocker; class BPath; -class ElfSymbolPatchGroup; +#ifndef NO_ELF_SYMBOL_PATCHING +#include +#endif // Defines SuiteFunction to be a pointer to a function that // takes no arguments and returns a pointer to a CppUnit::Test diff --git a/src/tools/cppunit/Jamfile b/src/tools/cppunit/Jamfile index ffb20ade3a..0dea61cc87 100644 --- a/src/tools/cppunit/Jamfile +++ b/src/tools/cppunit/Jamfile @@ -11,7 +11,7 @@ SEARCH_SOURCE += [ FDirName $(SUBDIR) cppunit ] ; { DEFINES += BUILDING_CPPUNIT ; - if $(OS) != BEOS || $(OSPLAT) = PPC { + if ( $(OS) != BEOS && $(OS) != HAIKU ) || $(OSPLAT) = PPC { DEFINES += NO_ELF_SYMBOL_PATCHING ; } } @@ -52,8 +52,8 @@ SharedLibrary libcppunit.so : : be [ TargetLibstdc++ ] ; -if $(OS) = BEOS && $(OSPLAT) != PPC { - LinkAgainst libcppunit.so : libelfsymbolpatcher.a ; +if ( $(OS) = BEOS || $(OS) = HAIKU ) && $(OSPLAT) != PPC { + LinkAgainst libcppunit.so : libelfsymbolpatcher.a debug ; } # To run the tests we need the cppunit library. diff --git a/src/tools/cppunit/TestShell.cpp b/src/tools/cppunit/TestShell.cpp index 61abf51f61..1cbf482dc3 100644 --- a/src/tools/cppunit/TestShell.cpp +++ b/src/tools/cppunit/TestShell.cpp @@ -22,10 +22,6 @@ #include #include -#ifndef NO_ELF_SYMBOL_PATCHING -# include -#endif - using std::cout; using std::endl; using std::set;