Elf has all the magic necessary to specify not only path (via rpath or runpath), but also architecture, endianness, and even OS and ABI version. See man:elf for more details. The cross-compiler tool chain can set all this up at compile/link time.
There is also LD_PRELOAD that you can use to coerce specific libraries to be loaded in place of what the default loading mechanism and search paths would find. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
