mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-12-02 12:33:56 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user