File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,17 @@ build options you plan to set.
67
67
### Cross compile
68
68
69
69
Set ` CC ` and ` FC ` to point to the cross toolchains, and set ` HOSTCC ` to your host C compiler.
70
- The target must be specified explicitly when cross compiling.
70
+ The target must be specified explicitly when cross compiling. The ` CROSS=1 ` flag should be specified.
71
71
72
72
Examples:
73
73
74
74
* On an x86 box, compile this library for a loongson3a CPU:
75
75
``` sh
76
- make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A
76
+ make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A CROSS=1
77
77
```
78
78
or same with the newer mips-crosscompiler put out by Loongson that defaults to the 32bit ABI:
79
79
``` sh
80
- make HOSTCC=gcc CC=' /opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/mips-linux-gnu-gcc -mabi=64' FC=' /opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/mips-linux-gnu-gfortran -mabi=64' TARGET=LOONGSON3A
80
+ make HOSTCC=gcc CC=' /opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/mips-linux-gnu-gcc -mabi=64' FC=' /opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/mips-linux-gnu-gfortran -mabi=64' TARGET=LOONGSON3A CROSS=1
81
81
```
82
82
83
83
* On an x86 box, compile this library for a loongson3a CPU with loongcc (based on Open64) compiler:
You can’t perform that action at this time.
0 commit comments