add compilation script for linux

This commit is contained in:
2025-09-19 13:09:20 +10:00
parent 9e329968d1
commit 3495268672

15
extlibs/compileall.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
echo "This script is designed for Linux systems"
echo "Please ensure CPR is installed on your system before continuing"
echo "On Arch Linux: sudo pacman -S cpr"
echo "Compiling exec library"
g++ -shared -fPIC -o exec.so exec/exec.cpp
echo "Compiling file library"
g++ -shared -fPIC -o file.so file/file.cpp
echo "Compiling math library"
g++ -shared -fPIC -o math.so math/math.cpp
echo "Compiling request library"
g++ -shared -fPIC -lcpr -o request.so request/request.cpp
echo "Done"