Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ libraries. In particular, it can do the following:
$ patchelf --set-rpath /opt/my-libs/lib:/other-libs my-program
```

* Add a directory to the `RPATH`:

```console
$ patchelf --add-rpath /opt/my-libs/lib my-program
```

This appends the specified directory to the existing `RPATH` of the
executable or library. Unlike `--set-rpath`, this preserves any
existing `RPATH` entries.

* Shrink the `RPATH` of executables and libraries:

```console
Expand Down