loader: Stop looking in ${libdir}/tls/

We don't install there, haven't in a long time.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34058>
This commit is contained in:
Adam Jackson 2024-07-29 11:59:41 -04:00 committed by Marge Bot
parent 81f73c89de
commit e06b834dfa

View file

@ -856,18 +856,13 @@ loader_open_driver_lib(const char *driver_name,
next = end;
len = next - p;
snprintf(path, sizeof(path), "%.*s/tls/%s%s.so", len,
snprintf(path, sizeof(path), "%.*s/%s%s.so", len,
p, driver_name, lib_suffix);
driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
if (driver == NULL) {
snprintf(path, sizeof(path), "%.*s/%s%s.so", len,
p, driver_name, lib_suffix);
driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
if (driver == NULL) {
dl_error = dlerror();
log_(_LOADER_DEBUG, "MESA-LOADER: failed to open %s: %s\n",
path, dl_error);
}
dl_error = dlerror();
log_(_LOADER_DEBUG, "MESA-LOADER: failed to open %s: %s\n",
path, dl_error);
}
/* not need continue to loop all paths once the driver is found */
if (driver != NULL)