[linux] Dynamically link to libudev instead of loading the library at run time
Currently, libudev
is dynamically loaded at run time using dlopen
.
We first try to load libudev.so.1
and if it fails we try to load libudev.so.0
.
This was done to avoid issues with distributions shipping different sonames for the library but this is not an issue anymore since distributions are only shipping libudev.so.1
nowadays.