Ubuntu's multisearch surprise
Ubuntu's multisearch surprise
Posted Aug 10, 2009 11:21 UTC (Mon) by mjthayer (guest, #39183)In reply to: Ubuntu's multisearch surprise by ringerc
Parent article: Ubuntu's multisearch surprise
That is more a consequence of problems in the *nix linking model, where all shared objects land in a global namespace. It is desirable for a few things like the C library, but for most shared objects it causes more problems than it solves. It would be so nice if build-time linking had the equivalent of dlopen's RTLD_LOCAL flag. I think this should even work without breaking LD_PRELOAD, as preloaded libraries would still be loaded as "RTLD_GLOBAL" libraries, so would still override the subsequent RTLD_LOCAL loaded ones.
