mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
23 lines
714 B
Bash
Executable file
23 lines
714 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
HWLOC_VERSION_MAJOR="2"
|
|
HWLOC_VERSION_MINOR="7"
|
|
HWLOC_VERSION_PATCH="1"
|
|
|
|
HWLOC_VERSION="${HWLOC_VERSION_MAJOR}.${HWLOC_VERSION_MINOR}.${HWLOC_VERSION_PATCH}"
|
|
|
|
mkdir -p deps
|
|
mkdir -p deps/include
|
|
mkdir -p deps/lib
|
|
|
|
mkdir -p build && cd build
|
|
|
|
wget https://download.open-mpi.org/release/hwloc/v${HWLOC_VERSION_MAJOR}.${HWLOC_VERSION_MINOR}/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 hwloc/.libs/libhwloc.a ../../deps/lib
|
|
cd ..
|