Thanks. Now that you point it out, it makes sense that the linker would only look for libkrb5support in libdb.so's runtime path (which doesn't include the build directory) in the absence of an explicit -lkrb5support.