diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-06 20:43:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-06 20:43:39 +0200 |
| commit | 1e2b77d9ab92177766dc0719133be37ae8fc3ced (patch) | |
| tree | b618b4badec3b3efa4726df0637f25b37c6f0562 | |
| parent | 373971abe48287f47ead6304b19279f34b6fcce5 (diff) | |
| parent | 0df736c2a9a7b5ceddd90bfdd6aa991801145a54 (diff) | |
| download | rust-1e2b77d9ab92177766dc0719133be37ae8fc3ced.tar.gz rust-1e2b77d9ab92177766dc0719133be37ae8fc3ced.zip | |
Rollup merge of #131001 - iyernaveenr:naveen_iyer/installation_clarity, r=onur-ozkan
add clarity for custom path installation install.sysconfdir is another value, in addition to install.prefix, that could be set for custom path installation.
| -rw-r--r-- | INSTALL.md | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/INSTALL.md b/INSTALL.md index ded0b59fc6c..74fcc58348b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -79,9 +79,23 @@ 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 directory path: + + ```bash + export DESTDIR=<path> + ``` + + or set `prefix` and `sysconfdir` in the `[install]` section to your custom + directory path: + + ```sh + ./configure --set install.prefix=<path> --set install.sysconfdir=<path> + ``` + + When the `DESTDIR` environment variable is present, the `prefix` and + `sysconfdir` values are combined with the path from the `DESTDIR` + environment variable. 3. Build and install: |
