Adding default RUNPATH to compiled binaries

Jonathan Wakely
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:

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