Skip to content

Commit

Permalink
add clarity for custom path installation
Browse files Browse the repository at this point in the history
install.sysconfdir is another value, in addition to install.prefix,
that could be set for custom path installation.

Signed-off-by: Naveen R. Iyer <[email protected]>
  • Loading branch information
iyernaveenr committed Sep 29, 2024
1 parent ed04567 commit 8a7a03a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,22 @@ See [the rustc-dev-guide for more info][sysllvm].
./configure
```

If you plan to use `x.py install` to create an installation, it is
recommended that you set the `prefix` value in the `[install]` section to a
directory: `./configure --set install.prefix=<path>`
If you plan to use `x.py install` to create an installation, you can either
set `DESTDIR` environment variable to your custom path or you can specify
separate paths for each of the `prefix` and `sysconfdir` values in the
`[install]` section:
`./configure --set install.prefix=<path1> --set install.sysconfdir=<path2>`

When the `DESTDIR` environment variable is present, the `prefix` and
`sysconfdir` values are combined with the path from the `DESTDIR`
environment variable.

More information on the `DESTDIR` environment variable is available here:
https://www.gnu.org/prep/standards/html_node/DESTDIR.html
https://rustc-dev-guide.rust-lang.org/building/new-target.html?highlight=DESTDIR#cross-compiling

More information on the `prefix` and `sysconfdir` values is available here:
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html

3. Build and install:

Expand Down

0 comments on commit 8a7a03a

Please sign in to comment.