Skip to content

Commit 602a178

Browse files
committed
Update readme
[ci skip]
1 parent 0d8895f commit 602a178

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ Suppose you have installed `x86_64-unknown-linux-gnu` toolchain and have it on `
2222
setup the environment variables as below to use it with Cargo.
2323

2424
```bash
25-
export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc
26-
export CXX_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-g++
27-
export AR_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-ar
28-
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc
25+
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc
26+
```
27+
28+
Usually only `CARGO_TARGET_*_LINKER` is required, in case it somehow fails to compile,
29+
you can also set some extra environment variables:
30+
31+
```bash
32+
export CC_x86_64_unknown_linux_gnu=x86_64-linux-gnu-gcc
33+
export CXX_x86_64_unknown_linux_gnu=x86_64-linux-gnu-g++
34+
export AR_x86_64_unknown_linux_gnu=x86_64-linux-gnu-ar
2935
```

0 commit comments

Comments
 (0)