-rpath dir Add a directory to the runtime library search path. This is used when linking an ELF executable with shared objects. All -rpath arguments are concatenated and passed to the runtime linker, which uses them to locate shared objects at runtime. ^^^^^^^^^^^^^^^^^^^^^^^^^ That is if we use -rpath /foo/bar then /foo/bar do not have to be in either /etc/ld.so.conf nor in LD_LIBRARY_PATH. / Fredrik