1 --- misc/cppunit-1.13.1/config/ltmain.sh
2 +++ misc/build/cppunit-1.13.1/config/ltmain.sh
7 + # Force no versioning suffix for Android thanks to silly
8 + # apkbuilder which doesn't add extra native libs unless their
13 # Parse the version information argument.
14 save_ifs="$IFS"; IFS=':'
15 set dummy $vinfo 0 0 0
16 --- misc/cppunit-1.13.1/src/cppunit/UnixDynamicLibraryManager.cpp
17 +++ misc/build/cppunit-1.13.1/src/cppunit/UnixDynamicLibraryManager.cpp
19 DynamicLibraryManager::LibraryHandle
20 DynamicLibraryManager::doLoadLibrary( const std::string &libraryName )
23 + // Use our enhanced dlopen() wrapper, see sal/osl/android/jni/lo-wrapper.c
24 + void *(*lo_dlopen)(const char *) = (void *(*)(const char *)) dlsym( RTLD_DEFAULT, "lo_dlopen" );
25 + if (lo_dlopen == NULL)
27 + return (*lo_dlopen)( libraryName.c_str() );
29 return ::dlopen( libraryName.c_str(), RTLD_NOW | RTLD_GLOBAL );