native compile by default

- add CMake flag `XMRSTAK_COMPILE` to select `native` or `static` compile
- add new flags to the documentation
This commit is contained in:
psychocrypt
2017-11-12 21:32:53 +01:00
parent 22039b2a87
commit fa752284bb
3 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -69,9 +69,9 @@
- g++ version 5.1 or higher is required for full C++11 support.
If you want to compile the binary without installing libraries / compiler or just compile binary for some other distribution, please check the [build_xmr-stak_docker.sh script](scripts/build_xmr-stak_docker/build_xmr-stak_docker.sh).
### To do a static build for a system without gcc 5.1+
### To do a generic and static build for a system without gcc 5.1+
```
cmake -DCMAKE_LINK_STATIC=ON .
cmake -DCMAKE_LINK_STATIC=ON -DXMR-STAK_COMPILE=generic .
make install
```
Note - cmake caches variables, so if you want to do a dynamic build later you need to specify '-DCMAKE_LINK_STATIC=OFF'