addDynamicLibName

Adds a default DT_SONAME (ELF) / 'install name' (Mach-O) when linking a dynamic library. This makes dependees reference their dynamic-lib deps by filename only (DT_NEEDED etc.) instead of by the path used in the dependee linker cmdline, and enables loading the deps from the dependee's output directory - either by setting the LD_LIBRARY_PATH environment variable, or baking an rpath into the executable.

package
void
addDynamicLibName

Meta