2011/12/11 Maciej (Matchek) Bliziński: > What's the recommended way of doing it? There's no single best option suitable for everyone. There are some alternatives listed in the documentation: http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic http://gcc.gnu.org/faq.html#rpath Personally I usually ensure my makefiles will use -Wl,-rpath during linking to set RPATH in the executables.