http://www.perlmonks.org?node_id=1225786


in reply to DynaLoader can't resolve multiple Linux shared objects

Can you build libLicIntfcLib.so with $ORIGIN/auto/LicenseInterface in its rpath? $ORIGIN is a special prefix understood by GNU ld.so as "the directory where the executable resides". Or maybe you need to write just $ORIGIN without anything else because the current executable would be libLicIntfcLib.so and liblmgr11.so is already stored near it.