Skip to content

Commit

Permalink
cppunit: Enable elf symbol patching for Haiku.
Browse files Browse the repository at this point in the history
Fixes #12799.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
  • Loading branch information
markhellegers authored and waddlesplash committed Jun 18, 2016
1 parent ac315db commit 56430ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion headers/tools/cppunit/TestShell.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class BDirectory;
class BLocker;
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
// takes no arguments and returns a pointer to a CppUnit::Test
Expand Down
6 changes: 3 additions & 3 deletions src/tools/cppunit/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
}
}
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions src/tools/cppunit/TestShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include <TestShell.h>
#include <TestListener.h>

#ifndef NO_ELF_SYMBOL_PATCHING
# include <ElfSymbolPatcher.h>
#endif

using std::cout;
using std::endl;
using std::set;
Expand Down

0 comments on commit 56430ad

Please sign in to comment.