mirror of
https://github.com/bylaws/libadrenotools
synced 2024-11-21 14:29:15 -07:00
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:
parent
c4bc94c03e
commit
deec5f75ee
1 changed files with 2 additions and 2 deletions
|
@ -96,11 +96,11 @@ __attribute__((visibility("default"))) void *hook_android_dlopen_ext(const char
|
||||||
return fallback();
|
return fallback();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto libgslHandle{android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo)};
|
auto libgslHandle{android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo)};
|
||||||
if (!libgslHandle) {
|
if (!libgslHandle) {
|
||||||
libgslHandle = android_dlopen_ext("notgsl.so", RTLD_NOW, &newExtinfo);
|
libgslHandle = android_dlopen_ext("notgsl.so", RTLD_NOW, &newExtinfo);
|
||||||
if (!libgslHandle)
|
if (!libgslHandle)
|
||||||
libgslHandle = android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo);
|
libgslHandle = android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (libgslHandle) {
|
if (libgslHandle) {
|
||||||
|
|
Loading…
Reference in a new issue