diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-11-13 20:06:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 20:06:20 +0000 |
commit | b63593379e31f57aa10346aa831770fc9359a620 (patch) | |
tree | 471798ebc77371c5877727cf3806a3e4286de416 /doc | |
parent | 9bc2d25c86c9ef3d3a62468a2cedf5111025ad9d (diff) | |
parent | fa752284bbbc5bbc01cd79b9ed4986c149e2b926 (diff) | |
download | xmr-stak-b63593379e31f57aa10346aa831770fc9359a620.zip xmr-stak-b63593379e31f57aa10346aa831770fc9359a620.tar.gz |
Merge pull request #107 from psychocrypt/topic-nativeCompile
native compile by default
Diffstat (limited to 'doc')
-rw-r--r-- | doc/compile.md | 10 | ||||
-rw-r--r-- | doc/compile_Linux.md | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/doc/compile.md b/doc/compile.md index 537a736..30cf58c 100644 --- a/doc/compile.md +++ b/doc/compile.md @@ -37,6 +37,7 @@ After the configuration you need to compile the miner, follow the guide for your - you can find the binary and the `config.txt` file after `make install` in `$HOME/xmr-stak-cpu/bin` - `CMAKE_LINK_STATIC` link libgcc and libstdc++ libraries static (default OFF) - disable with `cmake .. -DCMAKE_LINK_STATIC=ON` + - if you use static compile to run the miner on another system set `-DXMR-STAK_COMPILE=generic` (only available for LINUX, BSD and MacOSX) - `CMAKE_BUILD_TYPE` set the build type - valid options: `Release` or `Debug` - you should always keep `Release` for your productive miners @@ -44,10 +45,17 @@ After the configuration you need to compile the miner, follow the guide for your - there is no *http* interface available if option is disabled: `cmake .. -DMICROHTTPD_ENABLE=OFF` - `OpenSSL_ENABLE` allow to disable/enable the dependency *OpenSSL* - it is not possible to connect to a *https* secured pool if option is disabled: `cmake .. -DOpenSSL_ENABLE=OFF` +- `XMR-STAK_CURRENCY` - compile for Monero(XMR) or Aeon(AEON) usage only e.g. `cmake .. -DXMR-STAK_CURRENCY=monero` + +### only available for LINUX, BSD and MacOSX +- `XMR-STAK_COMPILE` select the CPU compute architecture (default: native) + - native means the miner binary can be used only on the system where it is compiled but will archive the highest hash rate + - use `cmake .. -DXMR-STAK_COMPILE=generic` to run the miner on all CPU's with sse2 + +### only available for Windows - `WIN_UAC` will enable or disable the "Run As Administrator" prompt on Windows. - UAC confirmation is needed to use large pages on Windows 7. - On Windows 10 it is only needed once to set up the account to use them. -- `XMR-STAK_CURRENCY` - compile for Monero(XMR) or Aeon(AEON) usage only e.g. `cmake .. -DXMR-STAK_CURRENCY=monero` ## CPU Build Options diff --git a/doc/compile_Linux.md b/doc/compile_Linux.md index c9347f5..cf99121 100644 --- a/doc/compile_Linux.md +++ b/doc/compile_Linux.md @@ -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' |