systctl -n hw.ncpu is for macos and bsd, swapped to nproc for Linux
This commit is contained in:
parent
bb9281db48
commit
d6d4956ffc
10
README.md
10
README.md
@ -25,23 +25,23 @@ mkdir workdir && cd workdir
|
|||||||
mkdir zlib libssl DPP poomer-discord sqlite3 && cd zlib
|
mkdir zlib libssl DPP poomer-discord sqlite3 && cd zlib
|
||||||
git clone https://github.com/madler/zlib.git .
|
git clone https://github.com/madler/zlib.git .
|
||||||
./configure --static
|
./configure --static
|
||||||
make -j$(sysctl -n hw.ncpu)
|
make -j$(nproc)
|
||||||
cd ../libssl && git clone https://github.com/openssl/openssl.git .
|
cd ../libssl && git clone https://github.com/openssl/openssl.git .
|
||||||
./Configure $([ "$(uname -m)" = "aarch64" ] && echo "linux-aarch64" || echo "linux-x86_64")
|
./Configure $([ "$(uname -m)" = "aarch64" ] && echo "linux-aarch64" || echo "linux-x86_64")
|
||||||
make -j$(sysctl -n hw.ncpu)
|
make -j$(nproc)
|
||||||
cd ../DPP && git clone https://github.com/brainboxdotcc/DPP.git .
|
cd ../DPP && git clone https://github.com/brainboxdotcc/DPP.git .
|
||||||
#zlib wants an absolute path to help cmake find_package work, ssl requires explicit vars
|
#zlib wants an absolute path to help cmake find_package work, ssl requires explicit vars
|
||||||
cmake -B ./build \
|
cmake -B ./build \
|
||||||
-DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl"
|
-DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl"
|
||||||
cmake --build ./build -j$(sysctl -n hw.ncpu)
|
cmake --build ./build -j$(nproc)
|
||||||
cd ../sqlite3
|
cd ../sqlite3
|
||||||
wget https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz
|
wget https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz
|
||||||
tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1
|
tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1
|
||||||
./configure --enable-static --disable-shared && make -j$(sysctl -n hw.ncpu)
|
./configure --enable-static --disable-shared && make -j$(nproc)
|
||||||
cd ../poomer-discord && git clone https://git.indoodle.com/oomer/poomer-discord.git .
|
cd ../poomer-discord && git clone https://git.indoodle.com/oomer/poomer-discord.git .
|
||||||
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
||||||
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
||||||
make all -j$(sysctl -n hw.ncpu)
|
make all -j$(nproc)
|
||||||
```
|
```
|
||||||
|
|
||||||
### MacOS x64 and arm64
|
### MacOS x64 and arm64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user