I have a problem with a third-party library (say TP.so) using the wrong version of the library (say GenericV1.so), instead of using the one it should (say GenericV2.so). An extra library is included for my program.
A direct solution to this (well-documented in SO) is to use dlopen () with the RTLD_DEEPBIND flag. But the flag is valid only for Linux, and not for other platforms such as HP-UX, Solaris, AIX, etc.
Is there an alternative for RTLD_DEEPBIND for use on these platforms other than Linux?
Thanks for your feedback.
Shailesh tainwala
source share