Inverse priority when loading gsl library

Most custom drivers ship with notgsl or vkbgsl, which should be loaded instead of the system gsl to prevent conflicts.
This commit is contained in:
Billy Laws 2023-06-30 18:04:51 +01:00
parent c4bc94c03e
commit deec5f75ee

View file

@ -96,11 +96,11 @@ __attribute__((visibility("default"))) void *hook_android_dlopen_ext(const char
return fallback();
}
auto libgslHandle{android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo)};
auto libgslHandle{android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo)};
if (!libgslHandle) {
libgslHandle = android_dlopen_ext("notgsl.so", RTLD_NOW, &newExtinfo);
if (!libgslHandle)
libgslHandle = android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo);
libgslHandle = android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo);
}
if (libgslHandle) {