Browse Source

Update cross-compiling example to reflect change in Loongson gcc

for #2723
tags/v0.3.11^2
Martin Kroeker GitHub 5 years ago
parent
commit
26b7f24d16
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      README.md

+ 4
- 0
README.md View File

@@ -58,6 +58,10 @@ Examples:
```sh
make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A
```
or same with the newer mips-crosscompiler put out by Loongson that defaults to the 32bit ABI:
```sh
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
```

* On an x86 box, compile this library for a loongson3a CPU with loongcc (based on Open64) compiler:
```sh


Loading…
Cancel
Save