guix: add initial loongarch64 support

This commit is contained in:
tobtoht
2026-04-20 20:35:00 +02:00
parent 230de37949
commit 1511c489c5
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -9,3 +9,4 @@ mips*
arm*
aarch64*
riscv64*
loongarch64*
+1 -1
View File
@@ -163,7 +163,7 @@ if(ARCHITECTURE STREQUAL "riscv64")
endif()
if(ARCHITECTURE STREQUAL "loongarch64")
set(ARCH_ID "loongarch64")
set(ARCH "loongarch")
set(ARCH "loongarch64")
endif()
if(ARCHITECTURE STREQUAL "i686")
+1
View File
@@ -199,6 +199,7 @@ case "$HOST" in
aarch64-linux-gnu) echo /lib/ld-linux-aarch64.so.1 ;;
riscv64-linux-gnu) echo /lib/ld-linux-riscv64-lp64d.so.1 ;;
i686-linux-gnu) echo /lib/ld-linux.so.2 ;;
loongarch64-linux-gnu) echo /lib64/ld-linux-loongarch-lp64d.so.1 ;;
*) exit 1 ;;
esac
)
+3 -1
View File
@@ -276,7 +276,9 @@ chain for " target " development."))
(list
gcc-toolchain-14
(list gcc-toolchain-14 "static")
(make-monero-cross-toolchain target)))
(if (string-contains target "loongarch64")
(make-monero-cross-toolchain target #:base-libc glibc)
(make-monero-cross-toolchain target))))
((string-contains target "freebsd")
(list
xz ; used to unpack freebsd_base