summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-11-17 15:16:30 +0200
committerTor Lillqvist <tlillqvist@suse.com>2011-11-17 15:23:05 +0200
commit480a380a7284d5d59f39aad15fd1a299ba704a2f (patch)
tree26ad2572b077c6893cf81b88fe6dcbbeb243f1bf /cppuhelper
parentf95c3e0ee255ecb56879c3c8ae7ba185fae861ab (diff)
Look for libboostrap.uno.so and not bootstrap.uno.so on Android
Not sure if we need to be more generic here, and always add a "lib" prefix if not present. Or do the changes to the makefilery take care of it, so that for other UNO components than bootstrap, the name as stored wherever it is stored does contain the "lib" prefix we are forces to use on Android?
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/shlib.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx
index 9414e34e3b04..8bce73d851a9 100644
--- a/cppuhelper/source/shlib.cxx
+++ b/cppuhelper/source/shlib.cxx
@@ -464,7 +464,14 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory(
SAL_THROW( (loader::CannotActivateFactoryException) )
{
#ifndef IOS
- OUString aModulePath( makeComponentPath( rLibName, rPath ) );
+ OUString sLibName(rLibName);
+
+#ifdef ANDROID
+ if ( rLibName.equals( OUSTR("bootstrap.uno" SAL_DLLEXTENSION) ) )
+ sLibName = OUSTR("libbootstrap.uno" SAL_DLLEXTENSION);
+#endif
+
+ OUString aModulePath( makeComponentPath( sLibName, rPath ) );
if (! checkAccessPath( &aModulePath ))
{
throw loader::CannotActivateFactoryException(