prefer rpath than system default for seach library image
|Reported by:||obache||Owned by:||bonefish|
Currently, library images will be searched from
- LIBRARY_PATH environment variable
- system default paths (now %A/lib:/boot/home/config/lib:/boot/common/lib:/boot/system/lib)
Is it possible to prefer rpath than system default paths?
I want to use shared libraries with some applications and specify the location with rpath. But if same name, but incompatible shared libraries are in both rpath (own) and system default, it result in following situation:
- Even LIBRARY_PATH is empty, system default one will be picked up, my applications will be broken.
- If adding my own library path to LIBRARY_PATH, my applications will work as expected, but others may be result in broken.
I believe changes of library search order resolve the situation, but break nothing.