cppunit: Enable elf symbol patching for Haiku.

Fixes #12799.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
Mark Hellegers
2016-06-18 18:11:47 -04:00
committed by Augustin Cavalier
parent ac315db012
commit 56430ad800
3 changed files with 6 additions and 8 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ class BDirectory;
class BLocker; class BLocker;
class BPath; class BPath;
class ElfSymbolPatchGroup; #ifndef NO_ELF_SYMBOL_PATCHING
#include <tools/elfsymbolpatcher/ElfSymbolPatcher.h>
#endif
// Defines SuiteFunction to be a pointer to a function that // Defines SuiteFunction to be a pointer to a function that
// takes no arguments and returns a pointer to a CppUnit::Test // takes no arguments and returns a pointer to a CppUnit::Test
+3 -3
View File
@@ -11,7 +11,7 @@ SEARCH_SOURCE += [ FDirName $(SUBDIR) cppunit ] ;
{ {
DEFINES += BUILDING_CPPUNIT ; DEFINES += BUILDING_CPPUNIT ;
if $(OS) != BEOS || $(OSPLAT) = PPC { if ( $(OS) != BEOS && $(OS) != HAIKU ) || $(OSPLAT) = PPC {
DEFINES += NO_ELF_SYMBOL_PATCHING ; DEFINES += NO_ELF_SYMBOL_PATCHING ;
} }
} }
@@ -52,8 +52,8 @@ SharedLibrary libcppunit.so :
: be [ TargetLibstdc++ ] : be [ TargetLibstdc++ ]
; ;
if $(OS) = BEOS && $(OSPLAT) != PPC { if ( $(OS) = BEOS || $(OS) = HAIKU ) && $(OSPLAT) != PPC {
LinkAgainst libcppunit.so : libelfsymbolpatcher.a ; LinkAgainst libcppunit.so : libelfsymbolpatcher.a debug ;
} }
# To run the tests we need the cppunit library. # To run the tests we need the cppunit library.
-4
View File
@@ -22,10 +22,6 @@
#include <TestShell.h> #include <TestShell.h>
#include <TestListener.h> #include <TestListener.h>
#ifndef NO_ELF_SYMBOL_PATCHING
# include <ElfSymbolPatcher.h>
#endif
using std::cout; using std::cout;
using std::endl; using std::endl;
using std::set; using std::set;