title: Is there an alternative to RTLD_DEEPBIND flag in dlopen() function for platforms that don't support RTLD_DEEPBIND?
body: <p>I have the problem of a third-party library (say, TP.so) using an incorrect library version (say, GenericV1.so) instead of using the one that it is supposed to (say, GenericV2.so). The extra library is included for use in my program.</p>
  
  <p>The straight-forward solution to this (well-documented on SO) is to use dlopen() with RTLD_DEEPBIND flag. But the flag is valid only on Linux, not other platforms like HP-UX, Solaris, AIX etc.</p>
  
  <p>Is there an alternative for RTLD_DEEPBIND for use in these non-Linux platforms?</p>
  
  <p>Thanks for your responses</p>