mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
FreeBSD build
This commit is contained in:
parent
a073923a82
commit
32533e3c96
3 changed files with 24 additions and 8 deletions
|
@ -97,6 +97,8 @@ include_directories(external/src/robin-hood-hashing/src/include)
|
|||
|
||||
if (WIN32)
|
||||
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
|
||||
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||
set(LIBS ${LIBS} pthread)
|
||||
elseif (NOT APPLE)
|
||||
set(LIBS ${LIBS} pthread gss dl)
|
||||
endif()
|
||||
|
@ -140,7 +142,9 @@ if (STATIC_BINARY)
|
|||
set(STATIC_LIBS randomx)
|
||||
endif()
|
||||
|
||||
if (NOT APPLE)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||
set(STATIC_LIBS ${STATIC_LIBS} pthread)
|
||||
elseif (NOT APPLE)
|
||||
set(STATIC_LIBS ${STATIC_LIBS} pthread dl)
|
||||
endif()
|
||||
|
||||
|
|
12
README.md
12
README.md
|
@ -249,6 +249,18 @@ cmake ..
|
|||
make -j$(sysctl -n hw.logicalcpu)
|
||||
```
|
||||
|
||||
### FreeBSD
|
||||
|
||||
Run the following commands to install the necessary prerequisites, clone this repo, and build P2Pool locally on FreeBSD:
|
||||
```
|
||||
pkg install git cmake libuv libzmq4
|
||||
git clone --recursive https://github.com/SChernykh/p2pool
|
||||
cd p2pool
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
make
|
||||
```
|
||||
|
||||
## Donations
|
||||
|
||||
If you'd like to support further development of Monero P2Pool, you're welcome to send any amount of XMR to the following address:
|
||||
|
|
|
@ -66,7 +66,7 @@ void make_thread_background()
|
|||
SetThreadPriorityBoost(GetCurrentThread(), true);
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN);
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
|
||||
#elif !defined(__APPLE__)
|
||||
#elif !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
sched_param param;
|
||||
param.sched_priority = 0;
|
||||
if (sched_setscheduler(0, SCHED_IDLE, ¶m) != 0) {
|
||||
|
|
Loading…
Reference in a new issue