dri: Add a useful error message if someone's packages missed libudev deps.

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Eric Anholt 2014-01-30 10:44:58 -08:00
parent 63546b8e3d
commit c849ecc19a
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ udev_dlopen_handle(void)
* might be ia64.
*/
udev_handle = dlopen("libudev.so.0", RTLD_LOCAL | RTLD_LAZY);
if (!udev_handle) {
log_(_LOADER_FATAL, "Couldn't dlopen libudev.so.1 or libudev.so.0, "
"driver detection may be broken.\n");
}
}
}