summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-04-20 21:21:10 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-04-20 21:21:10 +0200
commit015111fae68c5941362d9287be1dbfc38197a344 (patch)
treea8a3c51e9edd0625ece8b60d646d667cabea0e2f /README.md
parentddfcbd3c4ab9a37c06598a6e4898ed54d2922236 (diff)
downloadxmr-stak-015111fae68c5941362d9287be1dbfc38197a344.zip
xmr-stak-015111fae68c5941362d9287be1dbfc38197a344.tar.gz
allow optional static linking
- add cmake option `CMAKE_LINK_STATIC` - add missing `CMAKE_C_FLAGS` - change documentation
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4f662a4..c0938e2 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ lBoYbHZRpcWUfDO8o2y+ZQIs+yzMoJHHBBXB9fsHlwq62PTtzjsEVwB2aq9ABzk=
### To do a static build for a system without gcc 5.1+
```
- cmake -DCMAKE_BUILD_TYPE=STATIC .
+ cmake -DCMAKE_LINK_STATIC=ON .
make install
```
Note - cmake caches variables, so if you want to do a dynamic build later you need to specify '-DCMAKE_BUILD_TYPE=RELEASE'
@@ -197,6 +197,8 @@ and install.
- `CMAKE_INSTALL_PREFIX` install miner to the home folder
- `cmake . -DCMAKE_INSTALL_PREFIX=$HOME/xmr-stak-cpu`
- 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`
-`CMAKE_BUILD_TYPE` set the build type
- valid options: `Release` or `Debug`
- you should always keep `Release` for your productive miners
OpenPOWER on IntegriCloud