Fix #12799: Enable elf symbol patching for Haiku
Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
a034dfb647
commit
65f5e1e1b2
@@ -17,7 +17,11 @@ class BDirectory;
|
|||||||
class BLocker;
|
class BLocker;
|
||||||
class BPath;
|
class BPath;
|
||||||
|
|
||||||
|
#ifndef NO_ELF_SYMBOL_PATCHING
|
||||||
|
#include <tools/elfsymbolpatcher/ElfSymbolPatcher.h>
|
||||||
|
#else
|
||||||
class ElfSymbolPatchGroup;
|
class ElfSymbolPatchGroup;
|
||||||
|
#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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user