Rodrigo Arias
6d584c646c
When running ovniver without LD_LIBRARY_PATH set, the loader couldn't find any ovni installation and therefore was failing to start the program. With this change we set the RUNPATH (not RPATH) of ovniver to the installation libdir, so when no other libovni library is loaded via LD_LIBRARY_PATH the one provided by the same source as ovniver is used. The value of LD_LIBRARY_PATH is also printed so we can determine where it may be loading libovni. Using LD_DEBUG=libs will give more information of the search process. Fixes: https://pm.bsc.es/gitlab/rarias/ovni/-/issues/163
13 lines
241 B
Bash
13 lines
241 B
Bash
# Test ovniver as-is
|
|
(
|
|
ovniver
|
|
)
|
|
|
|
# Test LD_LIBRARY_PATH check in ovniver
|
|
(
|
|
export LD_LIBRARY_PATH=/hopefully/nothing/is/here
|
|
ovniver | grep "LD_LIBRARY_PATH set to"
|
|
unset LD_LIBRARY_PATH
|
|
ovniver | grep "LD_LIBRARY_PATH not set"
|
|
)
|