add rustfs.spec for rustfs (#103)

add support on loongarch64
This commit is contained in:
zhangwenlong
2025-07-24 11:39:09 +08:00
committed by GitHub
parent 3a3bb880f2
commit 25fa645184
2 changed files with 62 additions and 1 deletions
+4 -1
View File
@@ -30,6 +30,9 @@ detect_platform() {
"armv7l")
echo "armv7-unknown-linux-gnueabihf"
;;
"loongarch64")
echo "loongarch64-unknown-linux-musl"
;;
*)
echo "unknown-platform"
;;
@@ -397,7 +400,7 @@ build_binary() {
fi
else
# Native compilation
build_cmd="cargo build"
build_cmd="RUSTFLAGS=-Clink-arg=-lm cargo build"
fi
if [ "$BUILD_TYPE" = "release" ]; then