Skip to content

Commit 2d84ed7

Browse files
authored
Update README.md
1 parent c92104a commit 2d84ed7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,26 @@ build options you plan to set.
6767
### Cross compile
6868

6969
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. The `CROSS=1` flag should be specified.
70+
The target must be specified explicitly when cross compiling.
7171

7272
Examples:
7373

7474
* On an x86 box, compile this library for a loongson3a CPU:
7575
```sh
76-
make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A CROSS=1
76+
make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A
7777
```
7878
or same with the newer mips-crosscompiler put out by Loongson that defaults to the 32bit ABI:
7979
```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 CROSS=1
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
8181
```
8282

8383
* On an x86 box, compile this library for a loongson3a CPU with loongcc (based on Open64) compiler:
8484
```sh
8585
make CC=loongcc FC=loongf95 HOSTCC=gcc TARGET=LOONGSON3A CROSS=1 CROSS_SUFFIX=mips64el-st-linux-gnu- NO_LAPACKE=1 NO_SHARED=1 BINARY=32
8686
```
8787

88+
When compiling for a more modern CPU TARGET of the same architecture, e.g. TARGET=SKYLAKEX on a HASWELL host, option "CROSS=1" can be used to suppress the automatic invocation of the tests at the end of the build.
89+
8890
### Debug version
8991

9092
A debug version can be built using `make DEBUG=1`.

0 commit comments

Comments
 (0)