Skip to content

Commit

Permalink
Revert "cppunit: Enable elf symbol patching for Haiku."
Browse files Browse the repository at this point in the history
This reverts commit 56430ad.

It builds on my machine, but apparently the buildbots choke on it...
  • Loading branch information
waddlesplash committed Jun 18, 2016
1 parent fa2dd9c commit 73e180c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions headers/tools/cppunit/TestShell.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class BDirectory;
class BLocker;
class BPath;

#ifndef NO_ELF_SYMBOL_PATCHING
#include <tools/elfsymbolpatcher/ElfSymbolPatcher.h>
#endif
class ElfSymbolPatchGroup;

// 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 && $(OS) != HAIKU ) || $(OSPLAT) = PPC {
if $(OS) != BEOS || $(OSPLAT) = PPC {
DEFINES += NO_ELF_SYMBOL_PATCHING ;
}
}
Expand Down Expand Up @@ -52,8 +52,8 @@ SharedLibrary libcppunit.so :
: be [ TargetLibstdc++ ]
;

if ( $(OS) = BEOS || $(OS) = HAIKU ) && $(OSPLAT) != PPC {
LinkAgainst libcppunit.so : libelfsymbolpatcher.a debug ;
if $(OS) = BEOS && $(OSPLAT) != PPC {
LinkAgainst libcppunit.so : libelfsymbolpatcher.a ;
}

# To run the tests we need the cppunit library.
Expand Down
4 changes: 4 additions & 0 deletions src/tools/cppunit/TestShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#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 73e180c

Please sign in to comment.