| 18 | | In order to get a working build, both dsp and hard float have to be disabled, and only use static builds - at the moment of this writing, simply specifying a library path to qemu-mips will result in a runaway process eating all system memory until killed by the OOM. The result is a very slow build, but functional enough to run fate tests: |
| | 22 | Or, for hard float builds: |
| | 23 | |
| | 24 | {{{ |
| | 25 | $ sudo zypper in cross-mips-linux-binutils cross-mips-linux-hf-gcc cross-mips-linux-hf-glibc qemu-linux-user |
| | 26 | }}} |
| | 27 | |
| | 28 | In order to get a working build without hard-float, both dsp and hard float have to be disabled, and only use static builds - at the moment of this writing, simply specifying a library path to qemu-mips will result in a runaway process eating all system memory until killed by the OOM. The result is a very slow build, but functional enough to run fate tests: |
| 26 | | As a protection against the runaway-memory-eating bug, you may want to ulimit your shell (assuming you have 2G of RAM or more free): |
| | 36 | Otherwise configure with: |
| | 37 | |
| | 38 | {{{ |
| | 39 | $ ./configure --target-os=linux --arch=mips \ |
| | 40 | --enable-cross-compile --cross-prefix=mips-linux- --target-exec="qemu-mips -cpu 74Kf" --prefix=/opt/cross \ |
| | 41 | --extra-ldflags=-static --ranlib=mips-linux-ranlib |
| | 42 | }}} |
| | 43 | |
| | 44 | Just in case, as a protection against the runaway-memory-eating bug, you may want to ulimit your shell (assuming you have 2G of RAM or more free): |