Pascal Mazon
894fd42e7f
eal: do not try to load library from current directory
When loading a library "libfoo.so" (depending on "libbar.so", located in an entirely different folder), with a LD_LIBRARY_PATH=/path/to/libfoo.so", it returns an error: EAL: ./libfoo.so: cannot open shared object file: No such file or directory If the first dlopen() fails (here, because it can't find all dependencies), the code requires for a second dlopen() that looks for "./libfoo.so". It turns on pathname matching, which does not use LD_LIBRARY_PATH. As a result, it fails because it cannot find "./libfoo.so". The error message matches the error of the second dlopen(), not the first's. Do not try to look for a different library ("./"-prefixed) than the one provided in argument. Let the dynamic library management handle it, just provide an appropriate LD_LIBRARY_PATH. Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Description
No description provided
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%