- download xmrig: https://github.com/xmrig/xmrig/releases
- copy xmrig/scripts to xmrig-proxy/scripts
$ cp -frv xmrig/scripts xmrig-proxy/
$ cd xmrig-proxy && scripts/build_deps.sh
- edit cmake/cmake.flags
- find
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
and add-static
to it - result:
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -static")
$ mkdir -p build && cd build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
tmp=$(mktemp -d) | |
pushd "$tmp" || exit 1 | |
function cleanup { | |
popd || exit 1 | |
rm -rf "$tmp" | |
} |