C: Difference between revisions
imported>Mic92 typos |
imported>Mic92 fix markup |
||
Line 57: | Line 57: | ||
using the <code>-L</code> flag. We also notice that in addition to library paths the linker gets instructed | using the <code>-L</code> flag. We also notice that in addition to library paths the linker gets instructed | ||
to extend the <code>RPATH</code> of the program using the <code>-rpath</code> flag. | to extend the <code>RPATH</code> of the program using the <code>-rpath</code> flag. | ||
This is needed when the executable is executed since the runtime linker will read the <code>RPATH<code> from | This is needed when the executable is executed since the runtime linker will read the <code>RPATH</code> from | ||
the elf header to figure out where to find shared libraries. | the elf header to figure out where to find shared libraries. | ||
We can print the <code>RPATH</code> of executable using the <code>patchelf</code> command. | We can print the <code>RPATH</code> of executable using the <code>patchelf</code> command. |