File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,14 @@ Suppose you have installed `x86_64-unknown-linux-gnu` toolchain and have it on `
22
22
setup the environment variables as below to use it with Cargo.
23
23
24
24
``` 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
29
35
```
You can’t perform that action at this time.
0 commit comments