mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-24 20:49:25 +00:00
19 lines
536 B
Bash
19 lines
536 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
HWLOC_VERSION="1.11.13"
|
||
|
|
||
|
mkdir -p deps
|
||
|
mkdir -p deps/include
|
||
|
mkdir -p deps/lib
|
||
|
|
||
|
mkdir -p build && cd build
|
||
|
|
||
|
wget https://download.open-mpi.org/release/hwloc/v1.11/hwloc-${HWLOC_VERSION}.tar.gz -O hwloc-${HWLOC_VERSION}.tar.gz
|
||
|
tar -xzf hwloc-${HWLOC_VERSION}.tar.gz
|
||
|
|
||
|
cd hwloc-${HWLOC_VERSION}
|
||
|
./configure --disable-shared --enable-static --disable-io --disable-libudev --disable-libxml2
|
||
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
||
|
cp -fr include ../../deps
|
||
|
cp src/.libs/libhwloc.a ../../deps/lib
|
||
|
cd ..
|