summaryrefslogtreecommitdiff
path: root/cppunit
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-11-16 17:18:45 +0200
committerTor Lillqvist <tlillqvist@suse.com>2011-11-17 15:22:53 +0200
commit9a52bf1d5cfdd01c6d5ce6e41bf1a432f9a29e7f (patch)
tree0186535887e2aa4473762d58bd76f7fe78920965 /cppunit
parente75175625e1152651d993fec358599625e704e22 (diff)
Use lo_dlopen() on Android
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/android.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/cppunit/android.patch b/cppunit/android.patch
index 7d88a82cfbef..7628f5f9877f 100644
--- a/cppunit/android.patch
+++ b/cppunit/android.patch
@@ -33,3 +33,21 @@
# Parse the version information argument.
save_ifs="$IFS"; IFS=':'
set dummy $vinfo 0 0 0
+--- misc/cppunit-1.12.1/src/cppunit/UnixDynamicLibraryManager.cpp
++++ misc/build/cppunit-1.12.1/src/cppunit/UnixDynamicLibraryManager.cpp
+@@ -13,7 +13,15 @@
+ DynamicLibraryManager::LibraryHandle
+ DynamicLibraryManager::doLoadLibrary( const std::string &libraryName )
+ {
++#ifdef __ANDROID__
++ // Use our enhanced dlopen() wrapper, see sal/osl/android/jni/lo-wrapper.c
++ void *(*lo_dlopen)(const char *) = (void *(*)(const char *)) dlsym( RTLD_DEFAULT, "lo_dlopen" );
++ if (lo_dlopen == NULL)
++ return NULL;
++ return (*lo_dlopen)( libraryName.c_str() );
++#else
+ return ::dlopen( libraryName.c_str(), RTLD_NOW | RTLD_GLOBAL );
++#endif
+ }
+
+
?h=feature/cib_contract138c&id=c923f7d2c210dc7846767fc0ac6ece2a0d7812a8'>gbuild: "use" vs. "add":Michael Stahl 2012-04-02always pass --headless to cppunitsLuboš Luňák 2012-02-10fdo#39491 -I$(OUTDIR)/inc is set in SOLARINCMatúš Kukan 2012-01-15these are not old component files anymoreMatúš Kukan 2011-12-14configmgr.component is no longer an old one.Stephan Bergmann 2011-12-06normalize Red Hat, Inc. spellings, and bump to latest templateCaolán McNamara 2011-11-11Heavily simplified utl::ConfigManager.Stephan Bergmann 2011-11-11Make .component files directly usable within UNO_SERVICES.Stephan Bergmann 2011-10-15split bootstrapfixture and move test-filters class for sot testCaolán McNamara 2011-10-04adapt lotuswordpro unittests to separate RdbTarget makefile requirementBjoern Michaelsen 2011-09-30merge filters-test codeCaolán McNamara 2011-09-16Simplified setting headless mode for smoke-/subsequenttetss.Stephan Bergmann 2011-08-10prefer makefile-gmake-mode to plain makefile-modeTakeshi Abe 2011-07-30Add consistent Emacs and vim mode linesTor Lillqvist 2011-07-01gb_Library_PLAINEXT->gb_Library_DLLEXTCaolán McNamara 2011-06-30add modified unoexceptionprotector for better error msgs from exceptionsCaolán McNamara 2011-06-18remove all traces of offuh from makefilesDavid Tardon 2011-04-27Revert "use add_linked_objects instead of explicit dep"David Tardon 2011-04-24remove obsoleted depDavid Tardon 2011-04-24keep the linked_libs lists sortedDavid Tardon 2011-04-24use add_linked_objects instead of explicit depDavid Tardon 2011-04-24use the new UNO-related defs from CppunitTargetDavid Tardon 2011-04-17Library, not LinkTargetBjoern Michaelsen 2011-04-16unittest has to explicitly depend on lwpft libraryBjoern Michaelsen 2011-04-16use gb_CppunitTest_uses_ure, depend on PackageBjoern Michaelsen 2011-04-15remove old stuff nowCaolán McNamara