Browse Source

engine: android: quick hack to load libraries on aarch64 until we don't symlinking lib folder

pull/2/head
Alibek Omarov 5 years ago
parent
commit
d3dd671759
  1. 10
      engine/platform/android/lib_android.c

10
engine/platform/android/lib_android.c

@ -40,9 +40,19 @@ void *ANDROID_LoadLibrary( const char *dllname )
} }
// HACKHACK: keep old behaviour for compability // HACKHACK: keep old behaviour for compability
if( Q_strstr( dllname, "." OS_LIB_EXT ))
{
pHandle = dlopen( dllname, RTLD_LAZY ); pHandle = dlopen( dllname, RTLD_LAZY );
if( pHandle ) if( pHandle )
return pHandle; return pHandle;
}
else
{
Q_snprintf( path, MAX_SYSPATH, "lib%s"POSTFIX"."OS_LIB_EXT, dllname );
pHandle = dlopen( path, RTLD_LAZY );
if( pHandle )
return pHandle;
}
COM_PushLibraryError( dlerror() ); COM_PushLibraryError( dlerror() );

Loading…
Cancel
Save