Adding default RUNPATH to compiled binaries

Jonathan Wakely jwakely.gcc@gmail.com
Sun Dec 11 19:32:00 GMT 2011


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.



More information about the Gcc-help mailing list